diff options
Diffstat (limited to 'absl/crc/internal/crc32c_inline.h')
-rw-r--r-- | absl/crc/internal/crc32c_inline.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/crc/internal/crc32c_inline.h b/absl/crc/internal/crc32c_inline.h index 43ad14f4..6236c10b 100644 --- a/absl/crc/internal/crc32c_inline.h +++ b/absl/crc/internal/crc32c_inline.h @@ -34,7 +34,7 @@ inline bool ExtendCrc32cInline(uint32_t* crc, const char* p, size_t n) { constexpr uint32_t kCrc32Xor = 0xffffffffU; *crc ^= kCrc32Xor; if (n & 1) { - *crc = CRC32_u8(*crc, *p); + *crc = CRC32_u8(*crc, static_cast<uint8_t>(*p)); n--; p++; } |