[AD] Small patch for midi.c

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


While testing Allegro on IRIX64, I noticed some problems and one of them
was incorrect ints in src/midi.c. Patch is attached.

Have a nice day.

Stepan Roh
diff -U 3 --recursive allegro.orig/src/midi.c allegro/src/midi.c
--- allegro.orig/src/midi.c	Tue Aug  1 14:34:31 2000
+++ allegro/src/midi.c	Mon Oct 23 18:00:06 2000
@@ -95,7 +95,7 @@
 static int midi_semaphore = 0;                  /* reentrancy flag */
 static int midi_loaded_patches = FALSE;         /* loaded entire patch set? */
 
-static int midi_timer_speed;                    /* midi_player's timer speed */
+static long midi_timer_speed;                    /* midi_player's timer speed */
 static int midi_pos_speed;                      /* MIDI delta -> midi_pos */
 static int midi_speed;                          /* MIDI delta -> timer */
 static int midi_new_speed;                      /* for tempo change events */
@@ -412,7 +412,7 @@
    int c;
    int layer;
    int voice = -1;
-   int best_time = LONG_MAX;
+   long best_time = LONG_MAX;
 
    if (min < 0)
       min = 0;


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/