mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 16:23:09 +00:00
Fix potential overflow
This commit is contained in:
parent
8df17204f4
commit
817ca1820b
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue