Skip to content

Commit

Permalink
MemoryCardFolder: Fix Wsign-compare warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
lightningterror committed Nov 19, 2022
1 parent 5286b19 commit 3ba72e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcsx2/MemoryCardFolder.cpp
Expand Up @@ -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);
}
Expand Down

0 comments on commit 3ba72e8

Please sign in to comment.