midi_file.c
authorPaul Brossier <piem@altern.org>
Tue, 29 Mar 2005 16:13:54 +0000 (16:13 +0000)
committerPaul Brossier <piem@altern.org>
Tue, 29 Mar 2005 16:13:54 +0000 (16:13 +0000)
        by default, int is unsigned on powerpc. use signed int instead.

ext/midi/midi_file.c

index c069a78..cb1fc37 100644 (file)
@@ -146,7 +146,7 @@ int aubio_midi_file_skip(aubio_midi_file_t* mf, int skip)
 /** aubio_midi_file_read_mthd */
 int aubio_midi_file_read_mthd(aubio_midi_file_t* mf)
 {
-  char mthd[15];
+  signed char mthd[15];
   if (aubio_midi_file_read(mf, mthd, 14) != AUBIO_OK) {
     return AUBIO_FAIL;
   }