diff options
author | Torbjörn Andersson | 2003-06-13 18:09:18 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2003-06-13 18:09:18 +0000 |
commit | 6c1a5573afe06f5725bfcf0cf4a4ebe1b1387dcf (patch) | |
tree | 5319859018c85623512fce50f82b412b873c0661 | |
parent | 423ccef9a2ba885c5888856e2e031d4883c8460b (diff) | |
download | scummvm-rg350-6c1a5573afe06f5725bfcf0cf4a4ebe1b1387dcf.tar.gz scummvm-rg350-6c1a5573afe06f5725bfcf0cf4a4ebe1b1387dcf.tar.bz2 scummvm-rg350-6c1a5573afe06f5725bfcf0cf4a4ebe1b1387dcf.zip |
Cast %c error() parameters to byte before printing, like we do elsewhere.
svn-id: r8461
-rw-r--r-- | scumm/sound.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/scumm/sound.cpp b/scumm/sound.cpp index 3e5bdb0200..899e75204b 100644 --- a/scumm/sound.cpp +++ b/scumm/sound.cpp @@ -1119,7 +1119,11 @@ void Sound::bundleMusicHandler(Scumm *scumm) { break; default: - error("Unknown sound header %c%c%c%c", tag>>24, tag>>16, tag>>8, tag); + error("Unknown sound header %c%c%c%c", + (byte)(tag >> 24), + (byte)(tag >> 16), + (byte)(tag >> 8), + (byte)tag); } } if (size < 0) { @@ -1249,7 +1253,11 @@ int Sound::playBundleSound(char *sound) { break; default: - error("Unknown sound header %c%c%c%c", tag >> 24, tag >> 16, tag >> 8, tag); + error("Unknown sound header %c%c%c%c", + (byte)(tag >> 24), + (byte)(tag >> 16), + (byte)(tag >> 8), + (byte)tag); } } |