crc: fix -Wsign-compare warning

This commit is contained in:
Michael Scire 2019-04-04 10:36:07 -07:00 committed by fincs
parent 408ae95120
commit c3a94f5bce

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); \