1
0
Fork 0

Fix comparison with alpha, not beta

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

bench: 6261882
sf_3_base
Marco Costalba 2012-12-09 14:19:21 +01:00
parent da98a45bcb
commit 55db871472
1 changed files with 2 additions and 2 deletions

View File

@ -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
{