char is unsigned on some platforms/compilers (e.g. on Linaro ARM 2016.11)

This commit is contained in:
Marcus Weseloh 2017-11-24 12:30:10 +01:00
parent c57507a518
commit 267325f107

View file

@ -238,7 +238,7 @@ fluid_midi_file_read_mthd(fluid_midi_file *mf)
mf->type = mthd[9];
mf->ntracks = (unsigned) mthd[11];
mf->ntracks += (unsigned int) (mthd[10]) << 16;
if ((mthd[12]) < 0) {
if ((mthd[12]) & (1 << 7)) {
mf->uses_smpte = 1;
mf->smpte_fps = -mthd[12];
mf->smpte_res = (unsigned) mthd[13];