]> git.sesse.net Git - stockfish/blobdiff - src/syzygy/tbprobe.cpp
Small cleanups
[stockfish] / src / syzygy / tbprobe.cpp
index 34e4331da1c39c5dfeb3a4385255506558c7bbab..f1fd695c34a620c3102d048da20b45d92c1b94d6 100644 (file)
@@ -705,7 +705,7 @@ Ret do_probe_table(const Position& pos, T* entry, WDLScore wdl, ProbeState* resu
 
         std::swap(squares[0], *std::max_element(squares, squares + leadPawnsCnt, pawns_comp));
 
-        tbFile = edge_distance(file_of(squares[0]));
+        tbFile = File(edge_distance(file_of(squares[0])));
     }
 
     // DTZ tables are one-sided, i.e. they store positions only for white to