X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=ed18936f760eb71cb7450daa8c12279f7d3f1ef0;hp=0e3ba85c82ae5bf421ce7192d8e03a621d636979;hb=83d8fe2d59bad718de70b00ac2c8fddfadda76b5;hpb=6bc16f3ff162a46e5c06f8857865472757e46bf0 diff --git a/src/search.cpp b/src/search.cpp index 0e3ba85c..ed18936f 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1549,8 +1549,8 @@ split_point_start: // At split points actual search starts from here Piece p1, p2; Square ksq; - assert(m1 && move_is_ok(m1)); - assert(m2 && move_is_ok(m2)); + assert(move_is_ok(m1)); + assert(move_is_ok(m2)); // Case 1: The moving piece is the same in both moves f2 = move_from(m2); @@ -1626,7 +1626,7 @@ split_point_start: // At split points actual search starts from here bool connected_threat(const Position& pos, Move m, Move threat) { assert(move_is_ok(m)); - assert(threat && move_is_ok(threat)); + assert(move_is_ok(threat)); assert(!pos.move_is_capture_or_promotion(m)); assert(!pos.move_is_passed_pawn_push(m));