mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-17 15:46:24 +08:00
Fix comparison with alpha, not beta
This silly bug seems the reason of the unsual bench value. bench: 6261882
This commit is contained in:
@@ -573,7 +573,7 @@ namespace {
|
|||||||
|
|
||||||
// Fail Low
|
// Fail Low
|
||||||
if ( (tte->type() & BOUND_UPPER)
|
if ( (tte->type() & BOUND_UPPER)
|
||||||
&& ttValueUpper < beta
|
&& ttValueUpper <= alpha
|
||||||
&& tte->depth_upper() >= depth
|
&& tte->depth_upper() >= depth
|
||||||
&& ttValueUpper != VALUE_NONE) // Only in case of TT access race
|
&& 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
|
// Fail Low
|
||||||
if ( (tte->type() & BOUND_UPPER)
|
if ( (tte->type() & BOUND_UPPER)
|
||||||
&& ttValueUpper < beta
|
&& ttValueUpper <= alpha
|
||||||
&& tte->depth_upper() >= ttDepth
|
&& tte->depth_upper() >= ttDepth
|
||||||
&& ttValueUpper != VALUE_NONE) // Only in case of TT access race
|
&& ttValueUpper != VALUE_NONE) // Only in case of TT access race
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user