diff options
Diffstat (limited to 'scumm/resource.cpp')
-rw-r--r-- | scumm/resource.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scumm/resource.cpp b/scumm/resource.cpp index bef67b94a4..69b9b9e257 100644 --- a/scumm/resource.cpp +++ b/scumm/resource.cpp @@ -1084,9 +1084,9 @@ int Scumm::readSoundResourceSmallHeader(int type, int idx) dw = 500000; // for sanity debug(4, " ticks = %d, speed = %ld", ticks, dw); memcpy(ptr, "\x00\xFF\x51\x03", 4); ptr += 4; - *ptr++ = (dw >> 16) & 0xFF; - *ptr++ = (dw >> 8) & 0xFF; - *ptr++ = dw & 0xFF; + *ptr++ = (byte)((dw >> 16) & 0xFF); + *ptr++ = (byte)((dw >> 8) & 0xFF); + *ptr++ = (byte)(dw & 0xFF); memcpy(ptr, OLD256_MIDI_HACK, sizeof(OLD256_MIDI_HACK) - 1); ptr += sizeof(OLD256_MIDI_HACK) - 1; memcpy(ptr, track, size); |