From 55db87147237e84a4a2341ca10fb56c1ccfac32c Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sun, 9 Dec 2012 14:19:21 +0100 Subject: [PATCH 1/1] Fix comparison with alpha, not beta This silly bug seems the reason of the unsual bench value. bench: 6261882 --- src/search.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 07405d42..98f3e3fd 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -573,7 +573,7 @@ namespace { // Fail Low if ( (tte->type() & BOUND_UPPER) - && ttValueUpper < beta + && ttValueUpper <= alpha && tte->depth_upper() >= depth && ttValueUpper != VALUE_NONE) // Only in case of TT access race { @@ -1144,7 +1144,7 @@ split_point_start: // At split points actual search starts from here // Fail Low if ( (tte->type() & BOUND_UPPER) - && ttValueUpper < beta + && ttValueUpper <= alpha && tte->depth_upper() >= ttDepth && ttValueUpper != VALUE_NONE) // Only in case of TT access race { -- 2.39.2