From 8d1c1074d5d85a87e69f75cd13a0f2bf11626666 Mon Sep 17 00:00:00 2001 From: Reuven Peleg Date: Wed, 25 Sep 2013 14:04:38 +0300 Subject: [PATCH] Simplify tte use condition No functional change. --- src/search.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 63c9e076..0b87b456 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -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 -- 2.39.2