Fix warning.

This commit is contained in:
BearOso 2023-03-15 15:07:20 -05:00
parent 24db4e6e90
commit e81edf83a6
1 changed files with 2 additions and 2 deletions

View File

@ -3505,7 +3505,7 @@ void CMemory::ApplyROMFixes (void)
std::string CMemory::SafeString(std::string s, bool allow_jis /*=false*/)
{
std::string safe;
for (int i = 0; i < s.length(); i++)
for (size_t i = 0; i < s.length(); i++)
{
if (s[i] >= 32 && s[i] < 127) // ASCII
safe += s[i];
@ -3995,4 +3995,4 @@ void CMemory::CheckForAnyPatch(const char *rom_filename, bool8 header, int32 &ro
if (try_patch_type_sequence(PATCH_DIR))
return;
}
}