diff options
author | Max Horn | 2009-02-21 04:10:21 +0000 |
---|---|---|
committer | Max Horn | 2009-02-21 04:10:21 +0000 |
commit | bcb1a71052948d61474076615d6641f7b2153599 (patch) | |
tree | 8ec447dfc037b218029a9ee605e3b8047b01eb7d /engines/sci/scicore/decompress0.cpp | |
parent | ecaab0fe944811b44ae1ecf1157264623bda2b1f (diff) | |
download | scummvm-rg350-bcb1a71052948d61474076615d6641f7b2153599.tar.gz scummvm-rg350-bcb1a71052948d61474076615d6641f7b2153599.tar.bz2 scummvm-rg350-bcb1a71052948d61474076615d6641f7b2153599.zip |
SCI: Fixed more warnings
svn-id: r38658
Diffstat (limited to 'engines/sci/scicore/decompress0.cpp')
-rw-r--r-- | engines/sci/scicore/decompress0.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/engines/sci/scicore/decompress0.cpp b/engines/sci/scicore/decompress0.cpp index 0eb3774b31..1027c156b2 100644 --- a/engines/sci/scicore/decompress0.cpp +++ b/engines/sci/scicore/decompress0.cpp @@ -249,10 +249,10 @@ int sci0_get_compression_method(Common::ReadStream &stream) { int decompress0(resource_t *result, Common::ReadStream &stream, int sci_version) { - guint16 compressedLength; - guint16 compressionMethod; - guint16 result_size; - guint8 *buffer; + uint16 compressedLength; + uint16 compressionMethod; + uint16 result_size; + uint8 *buffer; if (stream.read(&(result->id), 2) != 2) return SCI_ERROR_IO_ERROR; @@ -278,8 +278,7 @@ int decompress0(resource_t *result, Common::ReadStream &stream, int sci_version) #endif result->size = result_size; - if ((result->size > SCI_MAX_RESOURCE_SIZE) || - (compressedLength > SCI_MAX_RESOURCE_SIZE)) + if (result->size > SCI_MAX_RESOURCE_SIZE) return SCI_ERROR_RESOURCE_TOO_BIG; /* With SCI0, this simply cannot happen. */ |