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 CMemory::SafeString(std::string s, bool allow_jis /*=false*/)
{ {
std::string safe; 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 if (s[i] >= 32 && s[i] < 127) // ASCII
safe += s[i]; safe += s[i];