diff options
author | D G Turner | 2019-09-30 04:24:07 +0100 |
---|---|---|
committer | D G Turner | 2019-09-30 04:40:58 +0100 |
commit | cefad7a5d0095e97b2a5cadef684086c53f18adb (patch) | |
tree | 65cdaadaf4236e1fc0a7357469db34b521e795d3 /engines | |
parent | a7ea2adff5d33c68daff03a9438b39d26b27fc89 (diff) | |
download | scummvm-rg350-cefad7a5d0095e97b2a5cadef684086c53f18adb.tar.gz scummvm-rg350-cefad7a5d0095e97b2a5cadef684086c53f18adb.tar.bz2 scummvm-rg350-cefad7a5d0095e97b2a5cadef684086c53f18adb.zip |
SCI: Fix MSVC Warning
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/resource_audio.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/resource_audio.cpp b/engines/sci/resource_audio.cpp index 4704963392..b3878d7a16 100644 --- a/engines/sci/resource_audio.cpp +++ b/engines/sci/resource_audio.cpp @@ -820,7 +820,7 @@ SoundResource::SoundResource(uint32 resourceNr, ResourceManager *resMan, SciVers uint16 size = data.getUint16LEAt(4); - if (dataOffset + size > resource->size()) { + if ((uint32)dataOffset + size > resource->size()) { warning("Invalid size inside sound resource %d: track %d, channel %d", resourceNr, trackNr, channelNr); size = resource->size() - dataOffset; } |