]> git.sesse.net Git - stockfish/blobdiff - src/bitboard.cpp
small cleanups
[stockfish] / src / bitboard.cpp
index 69bbc77bf309c97da5efc7de95916cdbad9da5e6..f650eef68627671dee2b3892e60f6d75b8cbff5b 100644 (file)
@@ -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);