[Scummvm-git-logs] scummvm master -> cefad7a5d0095e97b2a5cadef684086c53f18adb
digitall
547637+digitall at users.noreply.github.com
Mon Sep 30 05:43:26 CEST 2019
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
cefad7a5d0 SCI: Fix MSVC Warning
Commit: cefad7a5d0095e97b2a5cadef684086c53f18adb
https://github.com/scummvm/scummvm/commit/cefad7a5d0095e97b2a5cadef684086c53f18adb
Author: D G Turner (digitall at scummvm.org)
Date: 2019-09-30T04:40:58+01:00
Commit Message:
SCI: Fix MSVC Warning
Changed paths:
engines/sci/resource_audio.cpp
diff --git a/engines/sci/resource_audio.cpp b/engines/sci/resource_audio.cpp
index 4704963..b3878d7 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;
}
More information about the Scummvm-git-logs
mailing list