Skip to content

Commit 8d1c107

Browse files
R-Pelegmcostalba
authored andcommitted
Simplify tte use condition
No functional change.
1 parent e654209 commit 8d1c107

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/search.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -609,8 +609,7 @@ namespace {
609609

610610
// Can ttValue be used as a better position evaluation?
611611
if (ttValue != VALUE_NONE)
612-
if ( ((tte->bound() & BOUND_LOWER) && ttValue > eval)
613-
|| ((tte->bound() & BOUND_UPPER) && ttValue < eval))
612+
if (tte->bound() & (ttValue > eval ? BOUND_LOWER : BOUND_UPPER))
614613
eval = ttValue;
615614
}
616615
else

0 commit comments

Comments
 (0)