1
0
Fork 0

Remove useless razoring condition

Condition is always true! For any value of the
array index! Even an out of bound array, like
razor_margin[120]!!!!

No functional change.
coverity_scan
Marco Costalba 2016-09-29 15:24:36 +02:00
parent b77bae0529
commit eccccba0ce
1 changed files with 1 additions and 2 deletions

View File

@ -728,8 +728,7 @@ namespace {
&& ttMove == MOVE_NONE
&& eval + razor_margin[depth / ONE_PLY] <= alpha)
{
if ( depth <= ONE_PLY
&& eval + razor_margin[3] <= alpha)
if (depth <= ONE_PLY)
return qsearch<NonPV, false>(pos, ss, alpha, beta, DEPTH_ZERO);
Value ralpha = alpha - razor_margin[depth / ONE_PLY];