crc: fix -Wsign-compare warning

This commit is contained in:
Michael Scire 2019-04-04 10:36:07 -07:00
parent 9677e231ce
commit 92c7e24cd9

View File

@ -9,7 +9,7 @@
#define _CRC_ALIGN(sz, insn) \
do { \
if (((uintptr_t)src_u8 & sizeof(sz)) && len >= sizeof(sz)) { \
if (((uintptr_t)src_u8 & sizeof(sz)) && (u64)len >= sizeof(sz)) { \
crc = __crc32##insn(crc, *((const sz *)src_u8)); \
src_u8 += sizeof(sz); \
len -= sizeof(sz); \