X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=dd6ec05b929d70088c68fd8a3aa40b77486680fb;hp=6e6bf38b3dda159a5703386f3d7e1fe192d693ab;hb=76024ac40ea45e44a8389cb4206d40b884e259a5;hpb=6c9a64124a37afe82825e2a8ff91fe8418d8f388 diff --git a/src/position.cpp b/src/position.cpp index 6e6bf38b..dd6ec05b 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -2091,7 +2091,7 @@ bool Position::is_ok(int* failedStep) const { // Is there more than 2 checkers? if (failedStep) (*failedStep)++; - if (debugCheckerCount && count_1s(st->checkersBB) > 2) + if (debugCheckerCount && count_1s(st->checkersBB) > 2) return false; // Bitboards OK? @@ -2166,7 +2166,7 @@ bool Position::is_ok(int* failedStep) const { if (debugPieceCounts) for (Color c = WHITE; c <= BLACK; c++) for (PieceType pt = PAWN; pt <= KING; pt++) - if (pieceCount[c][pt] != count_1s(pieces_of_color_and_type(c, pt))) + if (pieceCount[c][pt] != count_1s(pieces_of_color_and_type(c, pt))) return false; if (failedStep) (*failedStep)++;