From 04001f776edd312418ad8334f4287b4d1dba5f7b Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sat, 15 Jan 2011 12:05:31 +0100 Subject: [PATCH] Fix a warning with __popcnt64() intrinsics Returns an int64_t while we want a simple int. This occurs only when compiling with MSVC on a 64 bit platform. 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 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)); -- 2.39.2