From 7ac04cc778b5e7c6138f8236ba1b180ad49f3060 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Sat, 30 May 2026 21:15:01 -0700 Subject: [PATCH] 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. --- pcem/pcemglue.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 } -- 2.47.3