]> git.sesse.net Git - stockfish/blobdiff - src/psqt.cpp
Small cleanups
[stockfish] / src / psqt.cpp
index d86e98e4ee3ff87a285aa450f8e84693b8cdc9d5..7fa36ac83dd4a4d5b0e8e19f96f59f5699a4a049 100644 (file)
@@ -112,7 +112,7 @@ void init() {
 
       for (Square s = SQ_A1; s <= SQ_H8; ++s)
       {
-          File f = edge_distance(file_of(s));
+          File f = File(edge_distance(file_of(s)));
           psq[ pc][ s] = score + (type_of(pc) == PAWN ? PBonus[rank_of(s)][file_of(s)]
                                                       : Bonus[pc][rank_of(s)][f]);
           psq[~pc][flip_rank(s)] = -psq[pc][s];