mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-23 10:36:26 +08:00
Fix a warning under HP-UX ANSI C++
Reported warning is:
warning #2514-D: pointless comparison of unsigned
integer with a negative constant
Spotted by Richard Lloyd.
No functional change.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -27,7 +27,8 @@
|
|||||||
|
|
||||||
enum Depth {
|
enum Depth {
|
||||||
DEPTH_ZERO = 0,
|
DEPTH_ZERO = 0,
|
||||||
DEPTH_MAX = 200 // 100 * OnePly;
|
DEPTH_MAX = 200, // 100 * OnePly;
|
||||||
|
DEPTH_ENSURE_SIGNED = -1
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1666,7 +1666,7 @@ namespace {
|
|||||||
alpha = bestValue;
|
alpha = bestValue;
|
||||||
|
|
||||||
// If we are near beta then try to get a cutoff pushing checks a bit further
|
// 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
|
// Initialize a MovePicker object for the current position, and prepare
|
||||||
// to search the moves. Because the depth is <= 0 here, only captures,
|
// to search the moves. Because the depth is <= 0 here, only captures,
|
||||||
|
|||||||
Reference in New Issue
Block a user