Skip to content

Commit

Permalink
patch RtMidi for ARM
Browse files Browse the repository at this point in the history
  • Loading branch information
tildearrow committed May 1, 2024
1 parent e8bbd0e commit 57158d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extern/rtmidi/RtMidi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 57158d9

Please sign in to comment.