X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fevaluate.cpp;h=3e996da8d32ba6f247ad8b516a880af2d28f2dd0;hb=74160ac60266f9e6824a5a6417d8a0ac8c0b39cf;hp=c22b591380433388fe37220dec5aa2607bbb2cb6;hpb=b870f5a091793ea423de78e74f5652b9307cfcbd;p=stockfish diff --git a/src/evaluate.cpp b/src/evaluate.cpp index c22b5913..3e996da8 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -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); + } }