From f2053ba19f8466ce33d9de4fa4267e77c1a6a852 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sat, 26 Jul 2014 16:01:09 +0200 Subject: [PATCH] Fix a warning with MSVC 2010 Warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data No functional change. --- src/search.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 0d290eec..3b7fab5f 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -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(), -- 2.39.2