[Lemon-commits] Peter Kovacs: Fix windows-specific compilation e...

Lemon HG hg at lemon.cs.elte.hu
Mon Oct 24 21:52:33 CEST 2011


details:   http://lemon.cs.elte.hu/hg/lemon/rev/7f6eeffe3cd1
changeset: 1088:7f6eeffe3cd1
user:      Peter Kovacs <kpeter [at] inf.elte.hu>
date:      Sun Oct 23 22:42:14 2011 +0200
description:
	Fix windows-specific compilation error (#429)

diffstat:

 test/max_cardinality_search_test.cc |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff --git a/test/max_cardinality_search_test.cc b/test/max_cardinality_search_test.cc
--- a/test/max_cardinality_search_test.cc
+++ b/test/max_cardinality_search_test.cc
@@ -117,7 +117,7 @@
    maxcard.addSource(s);
    maxcard.start(x);
 
-   check(maxcard.processed(s) and !maxcard.processed(x) and
+   check(maxcard.processed(s) && !maxcard.processed(x) &&
          !maxcard.processed(y), "Wrong processed()!");
 
    a=maxcard.nextNode();
@@ -127,7 +127,7 @@
    check(maxcard.processed(a), "Wrong processNextNode()!");
 
    maxcard.start();
-   check(maxcard.cardinality(x)==2 and maxcard.cardinality(y)>=4,
+   check(maxcard.cardinality(x)==2 && maxcard.cardinality(y)>=4,
          "Wrong cardinalities!");
  }
 



More information about the Lemon-commits mailing list