From c1e293fe7cf1135a958695e9c6656a7e4b9322e2 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 22 Jun 2014 19:52:50 -0700 Subject: [PATCH] Fix a warning on 32-bit that might be bad... --- Core/HLE/sceKernelThread.cpp | 2 +- Core/MIPS/MIPSInt.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Core/HLE/sceKernelThread.cpp b/Core/HLE/sceKernelThread.cpp index b1bb14ce0..f4897e309 100644 --- a/Core/HLE/sceKernelThread.cpp +++ b/Core/HLE/sceKernelThread.cpp @@ -1059,7 +1059,7 @@ void __KernelSleepEndCallback(SceUID threadID, SceUID prevCallbackId) { DEBUG_LOG(SCEKERNEL, "sceKernelSleepThreadCB: resume from callback, wakeupCount decremented to %i", thread->nt.wakeupCount); __KernelResumeThreadFromWait(threadID, 0); } else { - DEBUG_LOG(SCEKERNEL, "sceKernelDelayThreadCB: Resuming sleep after callback"); + DEBUG_LOG(SCEKERNEL, "sceKernelSleepThreadCB: Resuming sleep after callback"); } } diff --git a/Core/MIPS/MIPSInt.cpp b/Core/MIPS/MIPSInt.cpp index e625abeb4..45d88f5f4 100644 --- a/Core/MIPS/MIPSInt.cpp +++ b/Core/MIPS/MIPSInt.cpp @@ -897,8 +897,8 @@ namespace MIPSInt if (F(fs) >= 0.0f) { FsI(fd) = (int)floorf(F(fs)); // Overflow, but it was positive. - if (FsI(fd) == -2147483648) { - FsI(fd) = 2147483647; + if (FsI(fd) == -2147483648LL) { + FsI(fd) = 2147483647LL; } } else { // Overflow happens to be the right value anyway.