From 57158d9ebddd12c8bc1661fbd71d9badb41c6d50 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Wed, 1 May 2024 14:46:58 -0500 Subject: [PATCH] patch RtMidi for ARM --- extern/rtmidi/RtMidi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extern/rtmidi/RtMidi.cpp b/extern/rtmidi/RtMidi.cpp index 3984c5928..4be6eaedc 100644 --- a/extern/rtmidi/RtMidi.cpp +++ b/extern/rtmidi/RtMidi.cpp @@ -1805,7 +1805,7 @@ static void *alsaMidiHandler( void *ptr ) struct timespec y; y.tv_nsec = apiData->lastTime.tv_nsec; y.tv_sec = apiData->lastTime.tv_sec; - if ( x.tv_nsec < y.tv_nsec ) { + if ( (long int) x.tv_nsec < y.tv_nsec ) { int nsec = (y.tv_nsec - (int)x.tv_nsec) / 1000000000 + 1; y.tv_nsec -= 1000000000 * nsec; y.tv_sec += nsec;