aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2009-02-21 22:35:35 +0000
committerWillem Jan Palenstijn2009-02-21 22:35:35 +0000
commit145d5c44939a1bed6d7ddbc16a1ff92f3f9759bf (patch)
treef2ac0a0a909681e3f2b0e4cebaf475ed86a61ec4
parentb18c96ca8710c600dee584c2a5c9b9539766a1f4 (diff)
downloadscummvm-rg350-145d5c44939a1bed6d7ddbc16a1ff92f3f9759bf.tar.gz
scummvm-rg350-145d5c44939a1bed6d7ddbc16a1ff92f3f9759bf.tar.bz2
scummvm-rg350-145d5c44939a1bed6d7ddbc16a1ff92f3f9759bf.zip
fix hang on 64bit platforms
svn-id: r38756
-rw-r--r--engines/sci/gfx/operations.cpp2
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) {