From e81edf83a6305d3326d9a49e2ddae4afeca6ed9f Mon Sep 17 00:00:00 2001 From: BearOso Date: Wed, 15 Mar 2023 15:07:20 -0500 Subject: [PATCH] Fix warning. --- memmap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/memmap.cpp b/memmap.cpp index 498ddcaf..d621cdf6 100644 --- a/memmap.cpp +++ b/memmap.cpp @@ -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; -} \ No newline at end of file +}