MemoryCardFolder: Fix Wsign-compare warning.

This commit is contained in:
lightningterror 2022-11-19 18:24:33 +01:00
parent 5286b19af5
commit 3ba72e8728
1 changed files with 1 additions and 1 deletions

View File

@ -1008,7 +1008,7 @@ s32 FolderMemoryCard::Read(u8* dest, u32 adr, int size)
FolderMemoryCard::CalculateECC(ecc + (i * 3), &data[i * 0x80]);
}
pxAssert(size >= eccOffset);
pxAssert(static_cast<u32>(size) >= eccOffset);
const u32 copySize = std::min((u32)size - eccOffset, eccLength);
memcpy(dest + eccOffset, ecc, copySize);
}