mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 01:03:09 +00: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:
parent
68171ecaca
commit
f2053ba19f
1 changed files with 3 additions and 3 deletions
|
@ -94,9 +94,9 @@ 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
|
||||||
std::swap(RootMoves[0], *std::find(RootMoves.begin(),
|
std::swap(RootMoves[0], *std::find(RootMoves.begin(),
|
||||||
|
|
Loading…
Add table
Reference in a new issue