From 29199056202d24246c3115778e0946176e69257a Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Wed, 15 Jul 2015 21:11:24 +0200 Subject: [PATCH] PSP: Fixed error handling in SDL_SemWaitTimeout(). Signed integers were converted to unsigned before being checked if smaller 0. Found by Cppcheck. --- src/thread/psp/SDL_syssem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thread/psp/SDL_syssem.c b/src/thread/psp/SDL_syssem.c index c2342dde946b8..cfbbe433d933e 100644 --- a/src/thread/psp/SDL_syssem.c +++ b/src/thread/psp/SDL_syssem.c @@ -79,7 +79,7 @@ void SDL_DestroySemaphore(SDL_sem *sem) int SDL_SemWaitTimeout(SDL_sem *sem, Uint32 timeout) { Uint32 *pTimeout; - unsigned int res; + int res; if (sem == NULL) { SDL_SetError("Passed a NULL sem");