From 4773aff468f3485991b3115722f0aec1226763ad Mon Sep 17 00:00:00 2001 From: yinsimei Date: Mon, 5 Jun 2017 20:01:30 +0200 Subject: SLUDGE: correct int type --- engines/sludge/hsi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/sludge/hsi.cpp b/engines/sludge/hsi.cpp index 2ce87d8fda..22da4b4598 100644 --- a/engines/sludge/hsi.cpp +++ b/engines/sludge/hsi.cpp @@ -60,7 +60,7 @@ bool HSIDecoder::loadStream(Common::SeekableReadStream &stream) { for (uint16 y = 0; y < height; y++) { uint16 x = 0; while (x < width) { - unsigned short c = (unsigned short)stream.readUint16BE(); + uint16 c = stream.readUint16BE(); if (c & 32) { n = stream.readByte() + 1; c -= 32; -- cgit v1.2.3