X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftt.cpp;h=3d2fe48ac76ce8334609703008c55ff0a3b180c7;hp=d887844caf12eccae99b84c63ffc9d15a193ef48;hb=678425f2743a4cbe40b741d9b4d55f986dc3218a;hpb=865b71309c4dd5c6c67c9c9422df5790cbb22440 diff --git a/src/tt.cpp b/src/tt.cpp index d887844c..3d2fe48a 100644 --- a/src/tt.cpp +++ b/src/tt.cpp @@ -111,9 +111,9 @@ void TranspositionTable::store(const Key key, Value v, Bound b, Depth d, Move m, } // Implement replace strategy - if ( (replace->generation8 == generation) * 2 - - (tte->generation8 == generation || tte->bound() == BOUND_EXACT) * 2 - + (tte->depth16 < replace->depth16) > 0) + if ( ( tte->generation8 == generation || tte->bound() == BOUND_EXACT) + - (replace->generation8 == generation) + - (tte->depth16 < replace->depth16) < 0) replace = tte; }