X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbitcount.h;h=940dbaf52af207c8a24977e8780b42679e36650c;hp=3c5ba2a1fa4004e40905e0b2514d76d4ab1518ee;hb=04001f776edd312418ad8334f4287b4d1dba5f7b;hpb=877b468e3e8a3b7f7482266007237c6974f7f282 diff --git a/src/bitcount.h b/src/bitcount.h index 3c5ba2a1..940dbaf5 100644 --- a/src/bitcount.h +++ b/src/bitcount.h @@ -88,7 +88,7 @@ inline int count_1s(Bitboard b) { #elif defined(_MSC_VER) && defined(__INTEL_COMPILER) return _mm_popcnt_u64(b); #elif defined(_MSC_VER) - return __popcnt64(b); + return (int)__popcnt64(b); #elif defined(__GNUC__) unsigned long ret; __asm__("popcnt %1, %0" : "=r" (ret) : "r" (b));