aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/decompressor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/decompressor.cpp')
-rw-r--r--engines/sci/decompressor.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/sci/decompressor.cpp b/engines/sci/decompressor.cpp
index 158119fe86..d29a7dcf95 100644
--- a/engines/sci/decompressor.cpp
+++ b/engines/sci/decompressor.cpp
@@ -171,6 +171,8 @@ int DecompressorLZW::unpack(Common::ReadStream *src, byte *dest, uint32 nPacked,
unpackLZW1(src, buffer, nPacked, nUnpacked);
reorderPic(buffer, dest, nUnpacked);
break;
+ default:
+ break;
}
delete[] buffer;
return 0;
@@ -334,6 +336,9 @@ int DecompressorLZW::unpackLZW1(Common::ReadStream *src, byte *dest, uint32 nPac
}
lastbits = bitstring;
break;
+
+ default:
+ break;
}
}
@@ -367,6 +372,7 @@ void DecompressorLZW::decodeRLE(byte **rledata, byte **pixeldata, byte *outbuffe
pos += nextbyte;
break;
case 0xC0:
+ default:
break;
case 0x80:
nextbyte = *pd++;
@@ -400,6 +406,7 @@ int DecompressorLZW::getRLEsize(byte *rledata, int dsize) {
pos += nextbyte;
break;
case 0xC0:
+ default:
break;
case 0x80:
pos++;