diff --git a/nx/include/switch/crypto/crc.h b/nx/include/switch/crypto/crc.h index 9b4aa59c..c51ed1f7 100644 --- a/nx/include/switch/crypto/crc.h +++ b/nx/include/switch/crypto/crc.h @@ -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); \