summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Vandaƫle <joshua@vandaele.software>2026-02-08 15:06:13 +0100
committerJordan Woyak <jordan.woyak@gmail.com>2026-02-15 20:14:15 -0600
commit7b0ee7784061a2dd3ffd546698fcf58dd9e8cf51 (patch)
tree80780e76111491e8db81608902c46e37c56260d5
parent2c2bfc1fe174ec392bf4c7d905efa675837ee6e3 (diff)
SI_DeviceAMBaseboard: Comparing an unsigned int and an int
-rw-r--r--Source/Core/Core/HW/SI/SI_DeviceAMBaseboard.cpp2
1 files changed, 1 insertions, 1 deletions
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<const u8*>(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];
}