mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 00:56:39 +08:00
Comment out a redundant condition
Take advantage that VALUE_NONE = 32002 to remove the condition. Commented out and not removed becuase it is tricky to rely on the hidden value of VALUE_NONE and code can break in case we change VALUE_NONE in the future. No functional change.
This commit is contained in:
committed by
Marco Costalba
parent
09efbf915e
commit
c94145b65c
@@ -823,7 +823,7 @@ moves_loop: // When in check search starts from here
|
||||
CheckInfo ci(pos);
|
||||
value = bestValue; // Workaround a bogus 'uninitialized' warning under gcc
|
||||
improving = ss->staticEval >= (ss-2)->staticEval
|
||||
|| ss->staticEval == VALUE_NONE
|
||||
/* || ss->staticEval == VALUE_NONE Already implicit in the previous condition */
|
||||
||(ss-2)->staticEval == VALUE_NONE;
|
||||
|
||||
singularExtensionNode = !rootNode
|
||||
|
||||
Reference in New Issue
Block a user