mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 14:27:45 +00:00
Fix potential overflow
This commit is contained in:
+2
-2
@@ -643,10 +643,10 @@ namespace {
|
|||||||
&& !ss->skipNullMove
|
&& !ss->skipNullMove
|
||||||
&& depth < 4 * ONE_PLY
|
&& depth < 4 * ONE_PLY
|
||||||
&& !inCheck
|
&& !inCheck
|
||||||
&& eval - FutilityMargins[depth][(ss-1)->futMc] >= beta
|
&& eval - futility_margin(depth, (ss-1)->futMc) >= beta
|
||||||
&& abs(beta) < VALUE_MATE_IN_MAX_PLY
|
&& abs(beta) < VALUE_MATE_IN_MAX_PLY
|
||||||
&& pos.non_pawn_material(pos.side_to_move()))
|
&& pos.non_pawn_material(pos.side_to_move()))
|
||||||
return eval - FutilityMargins[depth][(ss-1)->futMc];
|
return eval - futility_margin(depth, (ss-1)->futMc);
|
||||||
|
|
||||||
// Step 8. Null move search with verification search (is omitted in PV nodes)
|
// Step 8. Null move search with verification search (is omitted in PV nodes)
|
||||||
if ( !PvNode
|
if ( !PvNode
|
||||||
|
|||||||
Reference in New Issue
Block a user