mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 09:37:16 +08:00
Fix a warning with MSVC 2010
Warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data No functional change.
This commit is contained in:
@@ -94,8 +94,8 @@ namespace {
|
|||||||
string uci_pv(const Position& pos, int depth, Value alpha, Value beta);
|
string uci_pv(const Position& pos, int depth, Value alpha, Value beta);
|
||||||
|
|
||||||
struct Skill {
|
struct Skill {
|
||||||
Skill(int l, int rootSize) : level(l),
|
Skill(int l, size_t rootSize) : level(l),
|
||||||
candidates(l < 20 ? std::min(4, rootSize) : 0),
|
candidates(l < 20 ? std::min(4, (int)rootSize) : 0),
|
||||||
best(MOVE_NONE) {}
|
best(MOVE_NONE) {}
|
||||||
~Skill() {
|
~Skill() {
|
||||||
if (candidates) // Swap best PV line with the sub-optimal one
|
if (candidates) // Swap best PV line with the sub-optimal one
|
||||||
|
|||||||
Reference in New Issue
Block a user