From: Stefan Reinauer Date: Sun, 31 May 2026 04:15:01 +0000 (-0700) Subject: pcem: pass MIDI parser a byte buffer X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=7ac04cc778b5e7c6138f8236ba1b180ad49f3060;p=francis%2Fwinuae.git pcem: pass MIDI parser a byte buffer 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. --- diff --git a/pcem/pcemglue.cpp b/pcem/pcemglue.cpp index 72388b9c..6035cc93 100644 --- a/pcem/pcemglue.cpp +++ b/pcem/pcemglue.cpp @@ -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 }