X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fnotation.cpp;h=89b00c553da4b58a100b75274b99369da1834821;hp=69a44d95bf8b8de90186fd423547bb4b577e750c;hb=6b5322ce000d6a8a6f845beda2d7e149e1baea0c;hpb=67d91dfd505ce7e2c641c12e5d14b50896874ec7 diff --git a/src/notation.cpp b/src/notation.cpp index 69a44d95..89b00c55 100644 --- a/src/notation.cpp +++ b/src/notation.cpp @@ -108,7 +108,7 @@ const string move_to_san(Position& pos, Move m) { while (attackers) { - Square sq = pop_1st_bit(&attackers); + Square sq = pop_lsb(&attackers); // Pinned pieces are not included in the possible sub-set if (!pos.pl_move_is_legal(make_move(sq, to), pos.pinned_pieces()))