SCI: Do not cast away const qualifier.

This commit is contained in:
Johannes Schickel 2012-04-05 00:31:35 +02:00
parent d8aecf006a
commit 56e8268073

View File

@ -563,7 +563,7 @@ void MidiPlayer_Midi::readMt32GmPatch(const byte *data, int size) {
switch (command & 0xf0) {
case 0xf0: {
byte *sysExEnd = (byte *)memchr(midi + i, 0xf7, midiSize - i);
const byte *sysExEnd = (const byte *)memchr(midi + i, 0xf7, midiSize - i);
if (!sysExEnd)
error("Failed to find end of sysEx");