X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbitboard.cpp;fp=src%2Fbitboard.cpp;h=f650eef68627671dee2b3892e60f6d75b8cbff5b;hp=69bbc77bf309c97da5efc7de95916cdbad9da5e6;hb=383b12e1a5cc03a122e9a071eebde87eac85b116;hpb=d940e59dad51e78d5146bb21c8f792379df64816 diff --git a/src/bitboard.cpp b/src/bitboard.cpp index 69bbc77b..f650eef6 100644 --- a/src/bitboard.cpp +++ b/src/bitboard.cpp @@ -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);