src/events/SDL_events.c
changeset 7857 6388f5229bb7
parent 7719 31b5f9ff36ca
child 7860 2b0bcdea3a79
     1.1 --- a/src/events/SDL_events.c	Sun Oct 20 20:41:30 2013 -0700
     1.2 +++ b/src/events/SDL_events.c	Sun Oct 20 20:42:55 2013 -0700
     1.3 @@ -443,7 +443,7 @@
     1.4                  /* Polling and no events, just return */
     1.5                  return 0;
     1.6              }
     1.7 -            if (timeout > 0 && ((int) (SDL_GetTicks() - expiration) >= 0)) {
     1.8 +            if (timeout > 0 && SDL_TICKS_PASSED(SDL_GetTicks(), expiration)) {
     1.9                  /* Timeout expired and no events */
    1.10                  return 0;
    1.11              }