X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsyzygy%2Ftbprobe.cpp;h=7bce67eabea8d1cb5e9d1632ae31de46b688bd5b;hp=17326970a49c55194ddc7e37c3a2946306c87a47;hb=ed72a1e9ba37a9fa2674da8f46bb0597a1721c2d;hpb=856a5f3aaaf8b9d53599963decacd4476b55c034 diff --git a/src/syzygy/tbprobe.cpp b/src/syzygy/tbprobe.cpp index 17326970..7bce67ea 100644 --- a/src/syzygy/tbprobe.cpp +++ b/src/syzygy/tbprobe.cpp @@ -7,6 +7,8 @@ this code to other chess engines. */ +#define NOMINMAX + #include #include "../position.h" @@ -622,7 +624,7 @@ int Tablebases::probe_dtz(Position& pos, int *success) if (v1 >= 0) v = v1; } else if (v < 0) { - if (v1 >= 0 || v1 < 100) + if (v1 >= 0 || v1 < -100) v = v1; } else if (v > 100) { if (v1 > 0)