diff options
author | Max Horn | 2003-12-26 13:14:03 +0000 |
---|---|---|
committer | Max Horn | 2003-12-26 13:14:03 +0000 |
commit | 692fca88c2564d78b364ed13d98e8e9d4b3a424e (patch) | |
tree | 185b124e51dc0df3ad882dfd2aa2950bb8a7b005 /sound/voc.cpp | |
parent | aa26fa0681ebd871ff976e6aec4d112eb9b21a19 (diff) | |
download | scummvm-rg350-692fca88c2564d78b364ed13d98e8e9d4b3a424e.tar.gz scummvm-rg350-692fca88c2564d78b364ed13d98e8e9d4b3a424e.tar.bz2 scummvm-rg350-692fca88c2564d78b364ed13d98e8e9d4b3a424e.zip |
fix warning, add TODO comment
svn-id: r11942
Diffstat (limited to 'sound/voc.cpp')
-rw-r--r-- | sound/voc.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sound/voc.cpp b/sound/voc.cpp index 7951d72633..2fc77e6781 100644 --- a/sound/voc.cpp +++ b/sound/voc.cpp @@ -83,6 +83,10 @@ enum { SOUND_HEADER_BIG_SIZE = 26 + 8 }; +// FIXME/TODO: loadVocSample() essentially duplicates all the code from +// readCreativeVoc(). Obviously this is bad, it should rather use that function +// (after some tweaks to readCreativeVoc, to deal with the alternate VTLK +// header). byte *loadVocSample(File *file, int32 &size, int &rate) { char ident[8]; @@ -121,7 +125,7 @@ byte *loadVocSample(File *file, int32 &size, int &rate) { error("loadVocSample: out of memory"); } - if (file->read(data, size) != size) { + if ((int)file->read(data, size) != size) { /* no need to free the memory since error will shut down */ error("startSfxSound: cannot read %d bytes", size); } |