Skip to content
Browse files

Fix comparison with alpha, not beta

This silly bug seems the reason of the unsual bench
value.

bench: 6261882
  • Loading branch information...
1 parent da98a45 commit 55db87147237e84a4a2341ca10fb56c1ccfac32c @mcostalba committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/search.cpp
View
4 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 @@ namespace {
// 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
{

0 comments on commit 55db871

Please sign in to comment.
Something went wrong with that request. Please try again.