mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 00:56:39 +08:00
Use prefix operators wherever possible
No functional change.
This commit is contained in:
committed by
Marco Costalba
parent
bd1c3ed7e3
commit
7f142d6817
@@ -296,7 +296,7 @@ void Thread::split(Position& pos, const Stack* ss, Value alpha, Value beta, Valu
|
||||
Threads.mutex.lock();
|
||||
sp.mutex.lock();
|
||||
|
||||
splitPointsSize++;
|
||||
++splitPointsSize;
|
||||
activeSplitPoint = &sp;
|
||||
activePosition = NULL;
|
||||
|
||||
@@ -336,7 +336,7 @@ void Thread::split(Position& pos, const Stack* ss, Value alpha, Value beta, Valu
|
||||
}
|
||||
|
||||
searching = true;
|
||||
splitPointsSize--;
|
||||
--splitPointsSize;
|
||||
activeSplitPoint = sp.parentSplitPoint;
|
||||
activePosition = &pos;
|
||||
pos.set_nodes_searched(pos.nodes_searched() + sp.nodes);
|
||||
|
||||
Reference in New Issue
Block a user