From 92c7e24cd9b0c66c4c813af1db05b071b353b94a Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Thu, 4 Apr 2019 10:36:07 -0700 Subject: [PATCH] crc: fix -Wsign-compare warning --- nx/include/switch/crypto/crc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); \