]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Fix a warning under HP-UX ANSI C++
[stockfish] / src / search.cpp
index 5ea75fecfbd98d40cb084f20600f77612b6a891c..fd5687ea9714ab625bbc8a6cf106003ab293bb34 100644 (file)
@@ -1666,7 +1666,7 @@ namespace {
         alpha = bestValue;
 
     // If we are near beta then try to get a cutoff pushing checks a bit further
-    bool deepChecks = depth == -OnePly && staticValue >= beta - PawnValueMidgame / 8;
+    bool deepChecks = (depth == -OnePly && staticValue >= beta - PawnValueMidgame / 8);
 
     // Initialize a MovePicker object for the current position, and prepare
     // to search the moves. Because the depth is <= 0 here, only captures,