]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
pcem: pass MIDI parser a byte buffer
authorStefan Reinauer <stefan.reinauer@coreboot.org>
Sun, 31 May 2026 04:15:01 +0000 (21:15 -0700)
committerStefan Reinauer <stefan.reinauer@coreboot.org>
Mon, 1 Jun 2026 21:17:19 +0000 (14:17 -0700)
Midi_Parse() takes a BYTE pointer. Store the uint8_t input in a local
BYTE before passing it on so the call does not depend on uint8_t and
BYTE being the same typedef on every host.

pcem/pcemglue.cpp

index 72388b9cf64e2918563b9f079bd61cdf2c644ca8..6035cc9387de47f2d07925363beb512be5391f9b 100644 (file)
@@ -359,7 +359,8 @@ void midi_write(uint8_t v)
        if (!midi_open) {
                midi_open = Midi_Open();
        }
-       Midi_Parse(midi_output, &v);
+       BYTE b = (BYTE)v;
+       Midi_Parse(midi_output, &b);
 #endif
 }