X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fnotation.cpp;h=a2c5aa68206ff5a2071a14f4092c58d33a823f86;hp=371b08a1a264b2b4d3e41953a73c2ca7b3d45d41;hb=64d29a633066e39b62af5ee0bbf32645994744ec;hpb=fcf2a34080404b90cac46184d76e8f2cdda16bd2 diff --git a/src/notation.cpp b/src/notation.cpp index 371b08a1..a2c5aa68 100644 --- a/src/notation.cpp +++ b/src/notation.cpp @@ -132,9 +132,9 @@ const string move_to_san(Position& pos, Move m) { while (b) { - Square sq = pop_lsb(&b); - if (!pos.legal(make_move(sq, to), pos.pinned_pieces(us))) - others ^= sq; + Square s = pop_lsb(&b); + if (!pos.legal(make_move(s, to), pos.pinned_pieces(us))) + others ^= s; } if (!others)