X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fendgame.cpp;h=20d175bab916fe150172bb63f2cabd724499b597;hp=dbf10582ac8964fdf3f047d6d93c54b202274c5d;hb=4b7dbb3922a0c563d74be4474b0cbdc1b00b4595;hpb=e0035e9ca981c8f7ed6ef75b098f22baf83a34e9 diff --git a/src/endgame.cpp b/src/endgame.cpp index dbf10582..20d175ba 100644 --- a/src/endgame.cpp +++ b/src/endgame.cpp @@ -648,7 +648,7 @@ ScaleFactor Endgame::operator()(const Position& pos) const { // Does the defending king block the pawns? if ( square_distance(ksq, relative_square(strongerSide, SQ_A8)) <= 1 || ( file_of(ksq) == FILE_A - && !in_front_bb(strongerSide, ksq) & pawns)) + && !(in_front_bb(strongerSide, ksq) & pawns))) return SCALE_FACTOR_DRAW; } // Are all pawns on the 'h' file? @@ -657,7 +657,7 @@ ScaleFactor Endgame::operator()(const Position& pos) const { // Does the defending king block the pawns? if ( square_distance(ksq, relative_square(strongerSide, SQ_H8)) <= 1 || ( file_of(ksq) == FILE_H - && !in_front_bb(strongerSide, ksq) & pawns)) + && !(in_front_bb(strongerSide, ksq) & pawns))) return SCALE_FACTOR_DRAW; } return SCALE_FACTOR_NONE;