mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-24 19:16:49 +08:00
Fix potential overflow
This commit is contained in:
@@ -643,10 +643,10 @@ namespace {
|
||||
&& !ss->skipNullMove
|
||||
&& depth < 4 * ONE_PLY
|
||||
&& !inCheck
|
||||
&& eval - FutilityMargins[depth][(ss-1)->futMc] >= beta
|
||||
&& eval - futility_margin(depth, (ss-1)->futMc) >= beta
|
||||
&& abs(beta) < VALUE_MATE_IN_MAX_PLY
|
||||
&& 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)
|
||||
if ( !PvNode
|
||||
|
||||
Reference in New Issue
Block a user