mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 09:06:45 +08:00
small cleanups
closes https://github.com/official-stockfish/Stockfish/pull/2653 No functional change
This commit is contained in:
@@ -69,7 +69,7 @@ const std::string Bitboards::pretty(Bitboard b) {
|
||||
void Bitboards::init() {
|
||||
|
||||
for (unsigned i = 0; i < (1 << 16); ++i)
|
||||
PopCnt16[i] = std::bitset<16>(i).count();
|
||||
PopCnt16[i] = uint8_t(std::bitset<16>(i).count());
|
||||
|
||||
for (Square s = SQ_A1; s <= SQ_H8; ++s)
|
||||
SquareBB[s] = (1ULL << s);
|
||||
|
||||
Reference in New Issue
Block a user