]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Fix a warning with MSVC 2010
[stockfish] / src / search.cpp
index 0d290eec65dae9451fc7c96a2c4a38fda23d0870..3b7fab5f31fb0196db17be3cb31f92ab93c2dda2 100644 (file)
@@ -94,9 +94,9 @@ namespace {
   string uci_pv(const Position& pos, int depth, Value alpha, Value beta);
 
   struct Skill {
-    Skill(int l, int rootSize) : level(l),
-                                 candidates(l < 20 ? std::min(4, rootSize) : 0),
-                                 best(MOVE_NONE) {}
+    Skill(int l, size_t rootSize) : level(l),
+                                    candidates(l < 20 ? std::min(4, (int)rootSize) : 0),
+                                    best(MOVE_NONE) {}
    ~Skill() {
       if (candidates) // Swap best PV line with the sub-optimal one
           std::swap(RootMoves[0], *std::find(RootMoves.begin(),