X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fnotation.cpp;h=d017c0790cc801b42842b949eb9c2c85d210e788;hb=6ea5dc294cb33d56d42e543d9fc4d5b7405e2b4e;hp=06573c78ce14424b12f00608c751f8f60095e6f8;hpb=cca34e234cc98ed4b61e75a25f8cd0d917c2a3fa;p=stockfish diff --git a/src/notation.cpp b/src/notation.cpp index 06573c78..d017c079 100644 --- a/src/notation.cpp +++ b/src/notation.cpp @@ -133,7 +133,7 @@ const string move_to_san(Position& pos, Move m) { while (b) { Move move = make_move(pop_lsb(&b), to); - if (!pos.legal(move, pos.pinned_pieces())) + if (!pos.legal(move, pos.pinned_pieces(pos.side_to_move()))) others ^= from_sq(move); } @@ -207,7 +207,7 @@ static string score_to_string(Value v) { s << "-#" << (VALUE_MATE + v) / 2; else - s << setprecision(2) << fixed << showpos << float(v) / PawnValueMg; + s << setprecision(2) << fixed << showpos << double(v) / PawnValueMg; return s.str(); }