]> git.sesse.net Git - stockfish/commitdiff
Fix a warning with MSVC 2010
authorMarco Costalba <mcostalba@gmail.com>
Sun, 30 Mar 2014 12:25:57 +0000 (14:25 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 30 Mar 2014 12:25:57 +0000 (14:25 +0200)
Warning C4804: '<' : unsafe use of type 'bool' in operation

No functional change.

src/tt.cpp

index efaf9928213f7b2aa06e80c4a4d197d80322bb75..3d2fe48ac76ce8334609703008c55ff0a3b180c7 100644 (file)
@@ -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;
   }