X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbitboard.h;fp=src%2Fbitboard.h;h=37585bb19b18e8e25feb54120429b3177caa6da6;hp=f8440a23a1aaf3f71635c672200786573d26b2b7;hb=090e49547ecaba8c9ec696d75f2fca3020bb058a;hpb=fefc0c67898ecf5101a4632846564874b78345c4 diff --git a/src/bitboard.h b/src/bitboard.h index f8440a23..37585bb1 100644 --- a/src/bitboard.h +++ b/src/bitboard.h @@ -136,7 +136,7 @@ constexpr bool more_than_one(Bitboard b) { } inline bool opposite_colors(Square s1, Square s2) { - return bool(DarkSquares & s1) != bool(DarkSquares & s2); + return (bool(DarkSquares & s1) != bool(DarkSquares & s2)); } /// rank_bb() and file_bb() return a bitboard representing all the squares on