PSP: Fixed error handling in SDL_SemWaitTimeout().
Signed integers were converted to unsigned before being checked if smaller 0. Found by Cppcheck.
This commit is contained in:
parent
8a0443bf99
commit
0aa4f76ebd
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ void SDL_DestroySemaphore(SDL_sem *sem)
|
||||||
int SDL_SemWaitTimeout(SDL_sem *sem, Uint32 timeout)
|
int SDL_SemWaitTimeout(SDL_sem *sem, Uint32 timeout)
|
||||||
{
|
{
|
||||||
Uint32 *pTimeout;
|
Uint32 *pTimeout;
|
||||||
unsigned int res;
|
int res;
|
||||||
|
|
||||||
if (sem == NULL) {
|
if (sem == NULL) {
|
||||||
SDL_SetError("Passed a NULL sem");
|
SDL_SetError("Passed a NULL sem");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue