mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 01:27:16 +08:00
Fix a warning under MSVC
Assignment of size_t to int. No functional change.
This commit is contained in:
@@ -1589,7 +1589,7 @@ void Thread::idle_loop() {
|
|||||||
// Try to late join to another split point if none of its slaves has
|
// Try to late join to another split point if none of its slaves has
|
||||||
// already finished.
|
// already finished.
|
||||||
SplitPoint* bestSp = NULL;
|
SplitPoint* bestSp = NULL;
|
||||||
int bestThread = 0;
|
Thread* bestThread = NULL;
|
||||||
int bestScore = INT_MAX;
|
int bestScore = INT_MAX;
|
||||||
|
|
||||||
for (size_t i = 0; i < Threads.size(); ++i)
|
for (size_t i = 0; i < Threads.size(); ++i)
|
||||||
@@ -1615,7 +1615,7 @@ void Thread::idle_loop() {
|
|||||||
if (score < bestScore)
|
if (score < bestScore)
|
||||||
{
|
{
|
||||||
bestSp = sp;
|
bestSp = sp;
|
||||||
bestThread = i;
|
bestThread = Threads[i];
|
||||||
bestScore = score;
|
bestScore = score;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1631,7 +1631,7 @@ void Thread::idle_loop() {
|
|||||||
|
|
||||||
if ( sp->allSlavesSearching
|
if ( sp->allSlavesSearching
|
||||||
&& sp->slavesCount < MAX_SLAVES_PER_SPLITPOINT
|
&& sp->slavesCount < MAX_SLAVES_PER_SPLITPOINT
|
||||||
&& available_to(Threads[bestThread]))
|
&& available_to(bestThread))
|
||||||
{
|
{
|
||||||
sp->slavesMask.set(idx);
|
sp->slavesMask.set(idx);
|
||||||
sp->slavesCount++;
|
sp->slavesCount++;
|
||||||
|
|||||||
Reference in New Issue
Block a user