aboutsummaryrefslogtreecommitdiff
path: root/engines/hugo/display.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2010-08-17 11:42:47 +0000
committerEugene Sandulenko2010-08-17 11:42:47 +0000
commit1ac434165d047c0b61cd77c4ba4e206172ca511d (patch)
tree362d0f42ec8e20e4723ae8dcb95a22db12039c18 /engines/hugo/display.cpp
parent56ec4fc353fc0fddaa3d046cbeeb9393c16c453a (diff)
downloadscummvm-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-xengines/hugo/display.cpp6
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;
}
}