Navigation Menu

Skip to content

Commit

Permalink
Fix comparison with alpha, not beta
Browse files Browse the repository at this point in the history
This silly bug seems the reason of the unsual bench
value.

bench: 6261882
  • Loading branch information
mcostalba committed Dec 9, 2012
1 parent da98a45 commit 55db871
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/search.cpp
Expand Up @@ -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
{
Expand Down Expand Up @@ -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
{
Expand Down

0 comments on commit 55db871

Please sign in to comment.