mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-04 18:42:15 +02:00
crc: fix -Wsign-compare warning
This commit is contained in:
parent
9677e231ce
commit
92c7e24cd9
@ -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); \
|
||||
|
Loading…
Reference in New Issue
Block a user