From 1ac434165d047c0b61cd77c4ba4e206172ca511d Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 17 Aug 2010 11:42:47 +0000 Subject: HUGO: Fix even more warnings svn-id: r52154 --- engines/hugo/display.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/hugo/display.cpp') diff --git a/engines/hugo/display.cpp b/engines/hugo/display.cpp index fde97c8f00..fe30ab0edb 100755 --- a/engines/hugo/display.cpp +++ b/engines/hugo/display.cpp @@ -396,7 +396,7 @@ int16 Screen::stringLength(char *s) { debugC(2, kDebugDisplay, "stringLength(%s)", s); for (sum = 0; *s; s++) - sum += *(fontArr[*s] + 1) + 1; + sum += *(fontArr[(uint)*s] + 1) + 1; return(sum); } @@ -419,8 +419,8 @@ void Screen::writeStr(int16 sx, int16 sy, char *s, byte color) { sx = center(s); for (; *s; s++) { - writeChr(sx, sy, color, (char *)font[*s]); - sx += *(font[*s] + 1) + 1; + writeChr(sx, sy, color, (char *)font[(uint)*s]); + sx += *(font[(uint)*s] + 1) + 1; } } -- cgit v1.2.3