aboutsummaryrefslogtreecommitdiff
path: root/engines/sludge/sprites.cpp
diff options
context:
space:
mode:
authorSimei Yin2017-07-13 23:26:47 +0200
committerSimei Yin2017-07-13 23:29:26 +0200
commitb60aa5eae76c049d301ed6a6727ac2f558a4e821 (patch)
tree8f97b67228aba43c5221b58a997dec367740bfb4 /engines/sludge/sprites.cpp
parent8fde04636001fe1c902187d85302c9db2ecffec0 (diff)
downloadscummvm-rg350-b60aa5eae76c049d301ed6a6727ac2f558a4e821.tar.gz
scummvm-rg350-b60aa5eae76c049d301ed6a6727ac2f558a4e821.tar.bz2
scummvm-rg350-b60aa5eae76c049d301ed6a6727ac2f558a4e821.zip
SLUDGE: fix warnings
Diffstat (limited to 'engines/sludge/sprites.cpp')
-rw-r--r--engines/sludge/sprites.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sludge/sprites.cpp b/engines/sludge/sprites.cpp
index 43bc590a96..62257854ff 100644
--- a/engines/sludge/sprites.cpp
+++ b/engines/sludge/sprites.cpp
@@ -178,7 +178,7 @@ bool loadSpriteBank(int fileNum, spriteBank &loadhere, bool isFont) {
// version 0, 1, 2
for (int i = 0; i < total; i++) {
- int picwidth, picheight;
+ uint picwidth, picheight;
// load sprite width, height, relative position
if (spriteBankVersion == 2) {
picwidth = bigDataFile->readUint16BE();
@@ -205,8 +205,8 @@ bool loadSpriteBank(int fileNum, spriteBank &loadhere, bool isFont) {
// read color
if (spriteBankVersion == 2) { // RUN LENGTH COMPRESSED DATA
- unsigned size = picwidth * picheight;
- unsigned pip = 0;
+ uint size = picwidth * picheight;
+ uint pip = 0;
while (pip < size) {
byte col = bigDataFile->readByte();