use static_cast in crc32c instead of c-style cast

main
Warren Falk 9 years ago
parent 601f1306a1
commit 2f01e10fa9
  1. 4
      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<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

Loading…
Cancel
Save