From 20db7b7d28b8efa634ad2d052ce4d28e2cc20a84 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Mon, 17 Dec 2007 11:21:26 +0000 Subject: Added some casting of fields in debug statements svn-id: r29893 --- engines/lure/strings.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines') diff --git a/engines/lure/strings.cpp b/engines/lure/strings.cpp index 35a246fed9..90b594579c 100644 --- a/engines/lure/strings.cpp +++ b/engines/lure/strings.cpp @@ -216,7 +216,7 @@ void StringData::getString(uint16 stringId, char *dest, const char *hotspotName, destPos += strlen(destPos); debugC(ERROR_DETAILED, kLureDebugStrings, "String data %xh/%.2xh val=%.2xh name=%s", - charOffset, charBitMask, ch, p); + charOffset, charBitMask, (uint8)ch, p); } } else if ((uint8) ch >= 0xa0) { const char *p = getName((uint8) ch - 0xa0); @@ -227,7 +227,7 @@ void StringData::getString(uint16 stringId, char *dest, const char *hotspotName, } else { *destPos++ = ch; debugC(ERROR_DETAILED, kLureDebugStrings, "String data %xh/%.2xh val=%.2xh char=%c", - charOffset, charBitMask, ch, ch); + charOffset, charBitMask, (uint8)ch, ch); } charOffset = _srcPos - _stringTable; -- cgit v1.2.3