diff options
Diffstat (limited to 'engines/zvision/lzss_read_stream.cpp')
-rw-r--r-- | engines/zvision/lzss_read_stream.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/zvision/lzss_read_stream.cpp b/engines/zvision/lzss_read_stream.cpp index d169620a25..8518c8fff9 100644 --- a/engines/zvision/lzss_read_stream.cpp +++ b/engines/zvision/lzss_read_stream.cpp @@ -42,9 +42,9 @@ uint32 LzssReadStream::decompressBytes(byte *destination, uint32 numberOfBytes) byte flagbyte = _source->readByte(); if (_source->eos()) break; - byte mask = 1; + uint mask = 1; - for (uint32 i = 0; i < 8; i++) { + for (int i = 0; i < 8; i++) { if ((flagbyte & mask) == mask) { byte data = _source->readByte(); @@ -70,7 +70,7 @@ uint32 LzssReadStream::decompressBytes(byte *destination, uint32 numberOfBytes) uint16 length = (high & 0xF) + 2; uint16 offset = low | ((high & 0xF0)<<4); - for(byte j = 0; j <= length; j++) + for(int j = 0; j <= length; j++) { byte temp = _window[(offset + j) & 0xFFF]; _window[_windowCursor] = temp; |