1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 16:53:09 +00:00

Simplify tte use condition

No functional change.
This commit is contained in:
Reuven Peleg 2013-09-25 14:04:38 +03:00 committed by Marco Costalba
parent e654209211
commit 8d1c1074d5

View file

@ -609,8 +609,7 @@ namespace {
// Can ttValue be used as a better position evaluation?
if (ttValue != VALUE_NONE)
if ( ((tte->bound() & BOUND_LOWER) && ttValue > eval)
|| ((tte->bound() & BOUND_UPPER) && ttValue < eval))
if (tte->bound() & (ttValue > eval ? BOUND_LOWER : BOUND_UPPER))
eval = ttValue;
}
else