PSP: Fixed error handling in SDL_SemWaitTimeout().
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Wed, 15 Jul 2015 21:11:24 +0200
changeset 9803 5ab98ac27e96
parent 9802 387821246318
child 9804 ad692d1e780f
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
--- a/src/thread/psp/SDL_syssem.c	Wed Jul 15 21:10:38 2015 +0200
+++ b/src/thread/psp/SDL_syssem.c	Wed Jul 15 21:11:24 2015 +0200
@@ -79,7 +79,7 @@
 int SDL_SemWaitTimeout(SDL_sem *sem, Uint32 timeout)
 {
     Uint32 *pTimeout;
-       unsigned int res;
+    int res;
 
     if (sem == NULL) {
         SDL_SetError("Passed a NULL sem");