PSP: Fixed error handling in SDL_SemWaitTimeout().
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Wed, 15 Jul 2015 21:11:24 +0200
changeset 98035ab98ac27e96
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
     1.1 --- a/src/thread/psp/SDL_syssem.c	Wed Jul 15 21:10:38 2015 +0200
     1.2 +++ b/src/thread/psp/SDL_syssem.c	Wed Jul 15 21:11:24 2015 +0200
     1.3 @@ -79,7 +79,7 @@
     1.4  int SDL_SemWaitTimeout(SDL_sem *sem, Uint32 timeout)
     1.5  {
     1.6      Uint32 *pTimeout;
     1.7 -       unsigned int res;
     1.8 +    int res;
     1.9  
    1.10      if (sem == NULL) {
    1.11          SDL_SetError("Passed a NULL sem");