diff options
-rw-r--r-- | engines/sci/gfx/operations.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/gfx/operations.cpp b/engines/sci/gfx/operations.cpp index d7fedf1d05..70734cc3d5 100644 --- a/engines/sci/gfx/operations.cpp +++ b/engines/sci/gfx/operations.cpp @@ -1377,7 +1377,7 @@ int gfxop_usleep(gfx_state_t *state, long usecs) { do { GFXOP_FULL_POINTER_REFRESH; time = g_system->getMillis(); - usecs = 1000l * (wakeup_time - time); + usecs = 1000 * ((long)wakeup_time - (long)time); } while ((usecs > 0) && !(retval = state->driver->usec_sleep(state->driver, usecs))); if (retval) { |