1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 16:53:09 +00:00

Fix a warning with MSVC 2010

Warning C4804: '<' : unsafe use of type 'bool' in operation

No functional change.
This commit is contained in:
Marco Costalba 2014-03-30 14:25:57 +02:00
parent 422c9c2acd
commit 678425f274

View file

@ -113,7 +113,7 @@ void TranspositionTable::store(const Key key, Value v, Bound b, Depth d, Move m,
// Implement replace strategy // Implement replace strategy
if ( ( tte->generation8 == generation || tte->bound() == BOUND_EXACT) if ( ( tte->generation8 == generation || tte->bound() == BOUND_EXACT)
- (replace->generation8 == generation) - (replace->generation8 == generation)
< (tte->depth16 < replace->depth16)) - (tte->depth16 < replace->depth16) < 0)
replace = tte; replace = tte;
} }