1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 16:53:09 +00:00

Fix memset/memcpy warnings

No functional change.
This commit is contained in:
Dariusz Orzechowski 2020-07-26 01:11:31 +02:00 committed by Joost VandeVondele
parent ab09c74783
commit cae61bbb65
2 changed files with 3 additions and 6 deletions

View file

@ -12,9 +12,9 @@ namespace Eval::NNUE {
struct alignas(32) Accumulator {
std::int16_t
accumulation[2][kRefreshTriggers.size()][kTransformedFeatureDimensions];
Value score = VALUE_ZERO;
bool computed_accumulation = false;
bool computed_score = false;
Value score;
bool computed_accumulation;
bool computed_score;
};
} // namespace Eval::NNUE

View file

@ -294,9 +294,6 @@ enum PieceSquare : uint32_t
struct ExtPieceSquare
{
PieceSquare from[COLOR_NB];
ExtPieceSquare() {}
ExtPieceSquare(PieceSquare fw, PieceSquare fb) : from{fw, fb} {}
};
// Array for finding the PieceSquare corresponding to the piece on the board