From: Marco Costalba Date: Sun, 21 Feb 2010 12:44:36 +0000 (+0100) Subject: Fix a warning with POPCNT and MSVC X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=1ea70dd9ddb346aaa23e592edcff9774c305174d;hp=13c096f839f991c5d0da1d9bf8d95eae6d0c0aa0 Fix a warning with POPCNT and MSVC Intrinsic __popcnt64() returns an unsigned __int64, cast to an integer and silence the warning. No functional change. Signed-off-by: Marco Costalba --- 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