From f7fee4c6165922b589727e6564430673379e5f30 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Tue, 3 May 2011 19:29:21 +0100 Subject: [PATCH] Fix a warning in debug mode No functional change. Signed-off-by: Marco Costalba --- src/evaluate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 77821a3a..8b77a829 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -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(queeningPath & pos.pieces_of_color(c)); -- 2.39.2