return -1 in fluid_midi_file_getc()

closes #93
This commit is contained in:
derselbst 2017-12-03 15:13:26 +01:00
parent cdfe8d3d7d
commit c30d519572

View file

@ -126,7 +126,7 @@ delete_fluid_midi_file (fluid_midi_file *mf)
/* /*
* Gets the next byte in a MIDI file, taking into account previous running status. * Gets the next byte in a MIDI file, taking into account previous running status.
* *
* returns FLUID_FAILED if EOF or read error * returns -1 if EOF or read error
*/ */
int int
fluid_midi_file_getc (fluid_midi_file *mf) fluid_midi_file_getc (fluid_midi_file *mf)
@ -138,7 +138,7 @@ fluid_midi_file_getc (fluid_midi_file *mf)
} else { } else {
if (mf->buf_pos >= mf->buf_len) { if (mf->buf_pos >= mf->buf_len) {
mf->eof = TRUE; mf->eof = TRUE;
return FLUID_FAILED; return -1;
} }
c = mf->buffer[mf->buf_pos++]; c = mf->buffer[mf->buf_pos++];
mf->trackpos++; mf->trackpos++;