X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=0b87b456b72054d3583f03fc09aa6548d5ec3e4a;hp=63c9e076f61ce6a713a162bace28dfde429b9fa9;hb=8d1c1074d5d85a87e69f75cd13a0f2bf11626666;hpb=e654209211a1bcd40a0ff00c5bdba284890ea857 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