From 2f01e10fa99227d778e83674ed55c9bf051af19f Mon Sep 17 00:00:00 2001 From: Warren Falk Date: Thu, 7 Jan 2016 13:22:09 -0500 Subject: [PATCH] use static_cast in crc32c instead of c-style cast --- util/crc32c.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/crc32c.cc b/util/crc32c.cc index b32836177..b96292ec8 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((unsigned int)*l, LE_LOAD32(*p)); + *l = _mm_crc32_u32(static_cast(*l), LE_LOAD32(*p)); *p += 4; - *l = _mm_crc32_u32((unsigned int)*l, LE_LOAD32(*p)); + *l = _mm_crc32_u32(static_cast(*l), LE_LOAD32(*p)); *p += 4; #endif #else