From ad3c2e1dbca0f7710bf78e2d1bcde8e6f7858d5a Mon Sep 17 00:00:00 2001 From: Gregory Montoir Date: Sun, 11 Sep 2005 14:35:34 +0000 Subject: committed patch #1281714 'Kyra 1 Sound Patch'. Thanks LordHoto. svn-id: r18807 --- sound/midiparser_xmidi.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'sound') diff --git a/sound/midiparser_xmidi.cpp b/sound/midiparser_xmidi.cpp index 3ee08ccb7d..9ad5bfafb9 100644 --- a/sound/midiparser_xmidi.cpp +++ b/sound/midiparser_xmidi.cpp @@ -51,11 +51,7 @@ public: // This is a special XMIDI variable length quantity uint32 MidiParser_XMIDI::readVLQ2(byte * &pos) { uint32 value = 0; - int i; - - for (i = 0; i < 4; ++i) { - if (pos[0] & 0x80) - break; + while (!(pos[0] & 0x80)) { value += *pos++; } return value; -- cgit v1.2.3