use static_cast in crc32c instead of c-style cast

This commit is contained in:
Warren Falk 2016-01-07 13:22:09 -05:00
parent 601f1306a1
commit 2f01e10fa9

View File

@ -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<unsigned int>(*l), LE_LOAD32(*p));
*p += 4;
*l = _mm_crc32_u32((unsigned int)*l, LE_LOAD32(*p));
*l = _mm_crc32_u32(static_cast<unsigned int>(*l), LE_LOAD32(*p));
*p += 4;
#endif
#else