From 7d3f62a816a6841811922b11d70f6ded8a479c79 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 18 Jun 2018 01:35:38 +0200 Subject: [PATCH] Buildfix --- midi/midi_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/midi/midi_driver.c b/midi/midi_driver.c index e14789d5f3..cf3f1e82d9 100644 --- a/midi/midi_driver.c +++ b/midi/midi_driver.c @@ -75,7 +75,7 @@ static midi_driver_t *midi_driver_find_driver(const char *ident) const void *midi_driver_find_handle(int index) { - if (index < 0 || index >= MIDI_DRIVER_COUNT) + if (index < 0 || index >= ARRAY_SIZE(midi_drivers)) return NULL; return midi_drivers[index]; @@ -83,7 +83,7 @@ const void *midi_driver_find_handle(int index) const char *midi_driver_find_ident(int index) { - if (index < 0 || index >= MIDI_DRIVER_COUNT) + if (index < 0 || index >= ARRAY_SIZE(midi_drivers)) return NULL; return midi_drivers[index]->ident;