From 7b0ee7784061a2dd3ffd546698fcf58dd9e8cf51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joshua=20Vanda=C3=ABle?= Date: Sun, 8 Feb 2026 15:06:13 +0100 Subject: [PATCH] SI_DeviceAMBaseboard: Comparing an unsigned int and an int --- Source/Core/Core/HW/SI/SI_DeviceAMBaseboard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/HW/SI/SI_DeviceAMBaseboard.cpp b/Source/Core/Core/HW/SI/SI_DeviceAMBaseboard.cpp index 6841d81702..52d1dd883f 100644 --- a/Source/Core/Core/HW/SI/SI_DeviceAMBaseboard.cpp +++ b/Source/Core/Core/HW/SI/SI_DeviceAMBaseboard.cpp @@ -177,7 +177,7 @@ void CSIDevice_AMBaseboard::ICCardSendReply(ICCommand* iccommand, u8* buffer, u3 const auto iccommand_data = reinterpret_cast(iccommand); const u8 crc = CheckSumXOR(iccommand_data + 2, iccommand->pktlen - 1); - for (u32 i = 0; i < iccommand->pktlen + 1; ++i) + for (u32 i = 0; i <= iccommand->pktlen; ++i) { buffer[(*length)++] = iccommand_data[i]; }