X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsyzygy%2Ftbprobe.cpp;h=a1e73c815de9a5eaa0dc27c3f1d7dd85d5b4a132;hp=46c513d256097f23c8044c09e86c3cceacefabea;hb=e4659693de364cf20466367f508355799691799e;hpb=52cb3480230cc3142a2adca37a2f5ce733d0769b diff --git a/src/syzygy/tbprobe.cpp b/src/syzygy/tbprobe.cpp index 46c513d2..a1e73c81 100644 --- a/src/syzygy/tbprobe.cpp +++ b/src/syzygy/tbprobe.cpp @@ -1061,10 +1061,10 @@ void do_init(Entry& e, T& p, uint8_t* data) { enum { Split = 1, HasPawns = 2 }; - uint8_t flags = *data++; + assert(e.hasPawns == !!(*data & HasPawns)); + assert((e.key != e.key2) == !!(*data & Split)); - assert(e.hasPawns == !!(flags & HasPawns)); - assert((e.key != e.key2) == !!(flags & Split)); + data++; // First byte stores flags const int Sides = IsWDL && (e.key != e.key2) ? 2 : 1; const File MaxFile = e.hasPawns ? FILE_D : FILE_A;