From 16de659f597ae8985ecbca6a01cba18b0132d069 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sat, 22 Jul 2006 16:09:34 +0000 Subject: Fixing compiler warnings under amd64. svn-id: r23564 --- engines/simon/debug.cpp | 2 +- engines/simon/vga.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'engines') diff --git a/engines/simon/debug.cpp b/engines/simon/debug.cpp index 037777bac9..8054383abb 100644 --- a/engines/simon/debug.cpp +++ b/engines/simon/debug.cpp @@ -449,7 +449,7 @@ void SimonEngine::dump_vga_bitmaps(const byte *vga, byte *vga1, int res) { void SimonEngine::dump_vga_script_always(const byte *ptr, uint res, uint sprite_id) { printf("; address=%x, vgafile=%d vgasprite=%d\n", - ptr - _vgaBufferPointers[res].vgaFile1, res, sprite_id); + (unsigned int)(ptr - _vgaBufferPointers[res].vgaFile1), res, sprite_id); dump_video_script(ptr, false); printf("; end\n"); } diff --git a/engines/simon/vga.cpp b/engines/simon/vga.cpp index 6fab10dd6c..79946ec309 100644 --- a/engines/simon/vga.cpp +++ b/engines/simon/vga.cpp @@ -132,7 +132,7 @@ void SimonEngine::runVgaScript() { if (_continousVgaScript) { if (_vcPtr != (const byte *)&_vc_get_out_of_code) { - printf("%.5d %.5X: %5d %4d ", _vgaTickCounter, _vcPtr - _curVgaFile1, _vgaCurSpriteId, _vgaCurZoneNum); + printf("%.5d %.5X: %5d %4d ", _vgaTickCounter, (unsigned int)(_vcPtr - _curVgaFile1), _vgaCurSpriteId, _vgaCurZoneNum); dump_video_script(_vcPtr, true); } } -- cgit v1.2.3