From 1ea70dd9ddb346aaa23e592edcff9774c305174d Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sun, 21 Feb 2010 13:44:36 +0100 Subject: [PATCH] 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 --- src/bitcount.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2