X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=058fab66b13940b2db943aef8548c46b63d1e936;hp=c8132d5e513d2a1b2d4aa6a711f96e1440b0b5f7;hb=94b9c65e09b5d396bebb29b62d9979139b5fbdfa;hpb=252537fd9c8cb60f765ea390d2464a42adeafc0a diff --git a/src/position.cpp b/src/position.cpp index c8132d5e..058fab66 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 == '/') @@ -1686,7 +1686,7 @@ Score Position::compute_value() const { Value Position::compute_non_pawn_material(Color c) const { - Value result = Value(0); + Value result = VALUE_ZERO; for (PieceType pt = KNIGHT; pt <= QUEEN; pt++) {