]> git.sesse.net Git - stockfish/blobdiff - src/bitcount.h
Fix a warning with POPCNT and MSVC
[stockfish] / src / bitcount.h
index b32314d8201ee88db1a6ee5a050d92d398803b86..7a05970d2abcb45a96333a34a070504941ac3b20 100644 (file)
@@ -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