From 601f1306a1eabea7807c0ad0600f8a12bc3eb717 Mon Sep 17 00:00:00 2001 From: Warren Falk Date: Thu, 7 Jan 2016 13:12:15 -0500 Subject: [PATCH] fix shorten-64-to-32 warning in crc32c --- util/crc32c.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/crc32c.cc b/util/crc32c.cc index 315263363..b32836177 100644 --- a/util/crc32c.cc +++ b/util/crc32c.cc @@ -319,9 +319,9 @@ static inline void Fast_CRC32(uint64_t* l, uint8_t const **p) { *l = _mm_crc32_u64(*l, LE_LOAD64(*p)); *p += 8; #else - *l = _mm_crc32_u32(*l, LE_LOAD32(*p)); + *l = _mm_crc32_u32((unsigned int)*l, LE_LOAD32(*p)); *p += 4; - *l = _mm_crc32_u32(*l, LE_LOAD32(*p)); + *l = _mm_crc32_u32((unsigned int)*l, LE_LOAD32(*p)); *p += 4; #endif #else