]> git.sesse.net Git - stockfish/blobdiff - src/psqt.cpp
Cleanup work in misc.cpp
[stockfish] / src / psqt.cpp
index 5e42d76e14bf14fa5b0b9f5338d863521daf61bb..d405526019fdf0773d15e0e65f4ce4ca8a962f51 100644 (file)
@@ -109,7 +109,7 @@ void init() {
 
       for (Square s = SQ_A1; s <= SQ_H8; ++s)
       {
-          int edgeDistance = int(file_of(s) < FILE_E ? file_of(s) : FILE_H - file_of(s));
+          int edgeDistance = file_of(s) < FILE_E ? file_of(s) : FILE_H - file_of(s);
           psq[BLACK][pt][~s] = -(psq[WHITE][pt][s] = v + Bonus[pt][rank_of(s)][edgeDistance]);
       }
   }