src/thread/pthread/SDL_syssem.c
changeset 7857 6388f5229bb7
parent 7732 4c0e4274c3f8
child 8093 b43765095a6f
     1.1 --- a/src/thread/pthread/SDL_syssem.c	Sun Oct 20 20:41:30 2013 -0700
     1.2 +++ b/src/thread/pthread/SDL_syssem.c	Sun Oct 20 20:42:55 2013 -0700
     1.3 @@ -156,7 +156,7 @@
     1.4  #else
     1.5      end = SDL_GetTicks() + timeout;
     1.6      while ((retval = SDL_SemTryWait(sem)) == SDL_MUTEX_TIMEDOUT) {
     1.7 -        if ((Sint32)(SDL_GetTicks() - end) >= 0) {
     1.8 +        if (SDL_TICKS_PASSED(SDL_GetTicks(), end)) {
     1.9              break;
    1.10          }
    1.11          SDL_Delay(1);