Skip to content

Commit

Permalink
return -1 in fluid_midi_file_getc()
Browse files Browse the repository at this point in the history
closes #93
  • Loading branch information
derselbst committed Dec 3, 2017
1 parent cdfe8d3 commit c30d519
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/midi/fluid_midi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
* returns FLUID_FAILED if EOF or read error
* returns -1 if EOF or read error
*/
int
fluid_midi_file_getc (fluid_midi_file *mf)
Expand All @@ -138,7 +138,7 @@ fluid_midi_file_getc (fluid_midi_file *mf)
} else {
if (mf->buf_pos >= mf->buf_len) {
mf->eof = TRUE;
return FLUID_FAILED;
return -1;
}
c = mf->buffer[mf->buf_pos++];
mf->trackpos++;
Expand Down

0 comments on commit c30d519

Please sign in to comment.