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