X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=021113ed7ded96ad2e99c243e356b2ce271cc6ae;hp=c8132d5e513d2a1b2d4aa6a711f96e1440b0b5f7;hb=4ce08482c3b0685691162bfc9115ccc7656674b4;hpb=80bee85d5f48cc1e06f16236a73c86a14c1d0756 diff --git a/src/position.cpp b/src/position.cpp index c8132d5e..021113ed 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -182,7 +182,7 @@ void Position::from_fen(const string& fen) { { if (isdigit(token)) { - file += token - '0'; // Skip the given number of files + file += File(token - '0'); // Skip the given number of files continue; } else if (token == '/')