From: Marco Costalba Date: Sun, 30 Mar 2014 12:25:57 +0000 (+0200) Subject: Fix a warning with MSVC 2010 X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=678425f2743a4cbe40b741d9b4d55f986dc3218a;hp=422c9c2acd5afb793ab8e26ef9641f7c348cd549 Fix a warning with MSVC 2010 Warning C4804: '<' : unsafe use of type 'bool' in operation No functional change. --- diff --git a/src/tt.cpp b/src/tt.cpp index efaf9928..3d2fe48a 100644 --- a/src/tt.cpp +++ b/src/tt.cpp @@ -113,7 +113,7 @@ void TranspositionTable::store(const Key key, Value v, Bound b, Depth d, Move m, // Implement replace strategy if ( ( tte->generation8 == generation || tte->bound() == BOUND_EXACT) - (replace->generation8 == generation) - < (tte->depth16 < replace->depth16)) + - (tte->depth16 < replace->depth16) < 0) replace = tte; }