From b60aa5eae76c049d301ed6a6727ac2f558a4e821 Mon Sep 17 00:00:00 2001 From: Simei Yin Date: Thu, 13 Jul 2017 23:26:47 +0200 Subject: SLUDGE: fix warnings --- engines/sludge/sprites.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/sludge/sprites.cpp') 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(); -- cgit v1.2.3