mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-22 01:57:16 +00:00
sword1: fix one gcc warning about comparison between signed and unsigned
svn-id: r44955
This commit is contained in:
parent
c4563616ae
commit
e2db155b1a
@ -285,7 +285,9 @@ bool MusicHandle::playPSX(uint16 id, bool loop) {
|
||||
|
||||
tableFile.close();
|
||||
|
||||
if ((size != 0) && (size != 0xffffffff) && ((offset + size) <= _file.size())) {
|
||||
// Because of broken tunes.dat/tab in psx demo, also check that tune offset is
|
||||
// not over file size
|
||||
if ((size != 0) && (size != 0xffffffff) && ((int32)(offset + size) <= _file.size())) {
|
||||
_file.seek(offset, SEEK_SET);
|
||||
_audioSource = new Audio::VagStream(_file.readStream(size), loop);
|
||||
fadeUp();
|
||||
|
Loading…
x
Reference in New Issue
Block a user