aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorD G Turner2019-09-30 04:24:07 +0100
committerD G Turner2019-09-30 04:40:58 +0100
commitcefad7a5d0095e97b2a5cadef684086c53f18adb (patch)
tree65cdaadaf4236e1fc0a7357469db34b521e795d3 /engines
parenta7ea2adff5d33c68daff03a9438b39d26b27fc89 (diff)
downloadscummvm-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.cpp2
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;
}