From eccccba0ce4e2d627cbe2adb1bf4a692d595ca99 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Thu, 29 Sep 2016 15:24:36 +0200 Subject: [PATCH] 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. --- src/search.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 3dc17962..1d8139c4 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -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(pos, ss, alpha, beta, DEPTH_ZERO); Value ralpha = alpha - razor_margin[depth / ONE_PLY]; -- 2.39.2