Skip to content

Commit

Permalink
PSP: Fixed error handling in SDL_SemWaitTimeout().
Browse files Browse the repository at this point in the history
Signed integers were converted to unsigned before being checked if smaller 0.

Found by Cppcheck.
  • Loading branch information
philippwiesemann committed Jul 15, 2015
1 parent 8bbded2 commit 2919905
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/thread/psp/SDL_syssem.c
Expand Up @@ -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");
Expand Down

0 comments on commit 2919905

Please sign in to comment.