Skip to content

Commit

Permalink
SCI: Fix MSVC Warning
Browse files Browse the repository at this point in the history
  • Loading branch information
digitall committed Sep 30, 2019
1 parent a7ea2ad commit cefad7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/sci/resource_audio.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit cefad7a

Please sign in to comment.