ref: 7946594661556f7bf8f427be4a714aea9be8d179
parent: 87af671fc5b21989f911646067dece53c8063f73
author: mfrancis95 <[email protected]>
date: Sun Dec 8 17:51:29 EST 2019
Fix printf warnings in midifile.c
--- a/src/midifile.c
+++ b/src/midifile.c
@@ -757,7 +757,7 @@
if (event->delta_time > 0)
{
- printf("Delay: %i ticks\n", event->delta_time);
+ printf("Delay: %u ticks\n", event->delta_time);
}
printf("Event type: %s (%i)\n",
@@ -773,19 +773,19 @@
case MIDI_EVENT_PROGRAM_CHANGE:
case MIDI_EVENT_CHAN_AFTERTOUCH:
case MIDI_EVENT_PITCH_BEND:
- printf("\tChannel: %i\n", event->data.channel.channel);
- printf("\tParameter 1: %i\n", event->data.channel.param1);
- printf("\tParameter 2: %i\n", event->data.channel.param2);
+ printf("\tChannel: %u\n", event->data.channel.channel);
+ printf("\tParameter 1: %u\n", event->data.channel.param1);
+ printf("\tParameter 2: %u\n", event->data.channel.param2);
break;
case MIDI_EVENT_SYSEX:
case MIDI_EVENT_SYSEX_SPLIT:
- printf("\tLength: %i\n", event->data.sysex.length);
+ printf("\tLength: %u\n", event->data.sysex.length);
break;
case MIDI_EVENT_META:
- printf("\tMeta type: %i\n", event->data.meta.type);
- printf("\tLength: %i\n", event->data.meta.length);
+ printf("\tMeta type: %u\n", event->data.meta.type);
+ printf("\tLength: %u\n", event->data.meta.length);
break;
}
}
@@ -812,7 +812,7 @@
for (i=0; i<file->num_tracks; ++i)
{
- printf("\n== Track %i ==\n\n", i);
+ printf("\n== Track %u ==\n\n", i);
PrintTrack(&file->tracks[i]);
}