X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpawns.cpp;h=0017b8044d8a1c3878546ed12fa09d836054a63c;hp=8759631ac6c43102fa7ed6d11770cc1820530300;hb=f83cb95740de019db6ff5567d6f84f218b18cd9e;hpb=195a4fec6d6bd1f9e43f5b3e83a3dcf57dc73744 diff --git a/src/pawns.cpp b/src/pawns.cpp index 8759631a..0017b804 100644 --- a/src/pawns.cpp +++ b/src/pawns.cpp @@ -204,7 +204,7 @@ Score Entry::evaluate_shelter(const Position& pos, Square ksq) { b = theirPawns & file_bb(f); int theirRank = b ? relative_rank(Us, frontmost_sq(Them, b)) : 0; - File d = edge_distance(f); + File d = File(edge_distance(f)); bonus += make_score(ShelterStrength[d][ourRank], 0); if (ourRank && (ourRank == theirRank - 1))