mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 16:46:30 +08:00
Safe guard some wild and ugly casts
These casts are needed but plain ugly, at least be sure they don't hide any subtle conversion bug. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -490,7 +490,10 @@ void init_eval(int threads) {
|
||||
}
|
||||
|
||||
for (Bitboard b = 0ULL; b < 256ULL; b++)
|
||||
{
|
||||
assert(count_1s(b) == int(uint8_t(count_1s(b))));
|
||||
BitCount8Bit[b] = (uint8_t)count_1s(b);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user