aboutsummaryrefslogtreecommitdiff
path: root/insane.cpp
diff options
context:
space:
mode:
authorJames Brown2002-07-04 15:48:17 +0000
committerJames Brown2002-07-04 15:48:17 +0000
commite346e6c28ca9a59b0f3992f5c4e9abc8f9421f00 (patch)
treeb71b1ad628a47002a684b72f20c21700ad6ef31d /insane.cpp
parente8d21d7b575b1db02ba1238f4107c56fd3adbabe (diff)
downloadscummvm-rg350-e346e6c28ca9a59b0f3992f5c4e9abc8f9421f00.tar.gz
scummvm-rg350-e346e6c28ca9a59b0f3992f5c4e9abc8f9421f00.tar.bz2
scummvm-rg350-e346e6c28ca9a59b0f3992f5c4e9abc8f9421f00.zip
Theres nothing to see here...
- Start of CMI support svn-id: r4459
Diffstat (limited to 'insane.cpp')
-rw-r--r--insane.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/insane.cpp b/insane.cpp
index 475f299583..df91e0bb54 100644
--- a/insane.cpp
+++ b/insane.cpp
@@ -236,15 +236,15 @@ void SmushPlayer::parseIACT() {
temp = (temp | _imusData[idx][0]) << 4;
temp -= 0x8000;
- buf[bpos++] = (temp >> 8) & 0xff;
- buf[bpos++] = temp & 0xff;
+ buf[bpos++] = (byte)((temp >> 8) & 0xff);
+ buf[bpos++] = (byte)(temp & 0xff);
temp = (_imusData[idx][1] & 0xf0) << 4;
temp = (temp | _imusData[idx][2]) << 4;
temp -= 0x8000;
- buf[bpos++] = (temp >> 8) & 0xff;
- buf[bpos++] = temp & 0xff;
+ buf[bpos++] = (byte)((temp >> 8) & 0xff);
+ buf[bpos++] = (byte)(temp & 0xff);
_imusPos[idx] = 0;
}
}