summaryrefslogtreecommitdiff
path: root/src/midifile.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/midifile.c')
-rw-r--r--src/midifile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/midifile.c b/src/midifile.c
index e9af051c..00ff28d4 100644
--- a/src/midifile.c
+++ b/src/midifile.c
@@ -706,7 +706,7 @@ int MIDI_GetNextEvent(midi_track_iter_t *iter, midi_event_t **event)
unsigned int MIDI_GetFileTimeDivision(midi_file_t *file)
{
- return file->header.time_division;
+ return SHORT(file->header.time_division);
}
void MIDI_RestartIterator(midi_track_iter_t *iter)