diff options
author | Eugene Sandulenko | 2010-08-17 11:42:47 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2010-08-17 11:42:47 +0000 |
commit | 1ac434165d047c0b61cd77c4ba4e206172ca511d (patch) | |
tree | 362d0f42ec8e20e4723ae8dcb95a22db12039c18 /engines/hugo/display.cpp | |
parent | 56ec4fc353fc0fddaa3d046cbeeb9393c16c453a (diff) | |
download | scummvm-rg350-1ac434165d047c0b61cd77c4ba4e206172ca511d.tar.gz scummvm-rg350-1ac434165d047c0b61cd77c4ba4e206172ca511d.tar.bz2 scummvm-rg350-1ac434165d047c0b61cd77c4ba4e206172ca511d.zip |
HUGO: Fix even more warnings
svn-id: r52154
Diffstat (limited to 'engines/hugo/display.cpp')
-rwxr-xr-x | engines/hugo/display.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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; } } |