Fix a warning in debug mode
authorMarco Costalba <mcostalba@gmail.com>
Tue, 3 May 2011 18:29:21 +0000 (19:29 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Tue, 3 May 2011 18:29:21 +0000 (19:29 +0100)
No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/evaluate.cpp

index 77821a3ad3dde342e5981638dab3862cf6680110..8b77a829e6cdcaefd7f96909b6f84f6c8c42c5ac 100644 (file)
@@ -924,7 +924,7 @@ namespace {
             // Opponent king cannot block because path is defended and position
             // is not in check. So only friendly pieces can be blockers.
             assert(!pos.in_check());
-            assert(queeningPath & pos.occupied_squares() == queeningPath & pos.pieces_of_color(c));
+            assert((queeningPath & pos.occupied_squares()) == (queeningPath & pos.pieces_of_color(c)));
 
             // Add moves needed to free the path from friendly pieces and retest condition
             movesToGo += count_1s<Max15>(queeningPath & pos.pieces_of_color(c));