mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 00:33:09 +00:00
Fix a warning with debug=no
Warning in TB code due to unused variable. Verified same bench with TB code enabled. No functional change.
This commit is contained in:
parent
52cb348023
commit
e4659693de
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue