X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbitcount.h;h=7a05970d2abcb45a96333a34a070504941ac3b20;hp=b32314d8201ee88db1a6ee5a050d92d398803b86;hb=29fb38976036d6691f6cbdf8990245ed74d79be2;hpb=d7d2c1b7e31f5b680ebb44e2ffcbfc4bcb2aecfd diff --git a/src/bitcount.h b/src/bitcount.h index b32314d8..7a05970d 100644 --- a/src/bitcount.h +++ b/src/bitcount.h @@ -51,7 +51,7 @@ inline bool cpu_has_popcnt() { return (CPUInfo[2] >> 23) & 1; } -#define POPCNT_INTRINSIC(x) __popcnt64(x) +#define POPCNT_INTRINSIC(x) (int)__popcnt64(x) #elif defined(__GNUC__) && defined(USE_POPCNT) // Gcc compiler