From 10112fa6a2d4589e1ccd44625ed6bf80b2a997ac Mon Sep 17 00:00:00 2001 From: sum2012 Date: Sat, 13 Jun 2020 20:46:35 +0800 Subject: [PATCH] Change to @unknownbrackets logic Avoid warnings --- Core/HLE/sceKernelInterrupt.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Core/HLE/sceKernelInterrupt.cpp b/Core/HLE/sceKernelInterrupt.cpp index 08158e9afb..18c8cfb35c 100644 --- a/Core/HLE/sceKernelInterrupt.cpp +++ b/Core/HLE/sceKernelInterrupt.cpp @@ -756,11 +756,11 @@ static int sysclib_strstr(u32 s1, u32 s2) { ERROR_LOG(SCEKERNEL, "Untested sysclib_strstr(%08x, %08x)", s1, s2); std::string str1 = Memory::GetCharPointer(s1); std::string str2 = Memory::GetCharPointer(s2); - int index = str1.find(str2); - if (index < 0) { + size_t index = str1.find(str2); + if (index == str1.npos) { return 0; } - return s1 + index; + return s1 + (uint32_t)index; } const HLEFunction SysclibForKernel[] =