[AD] Small patch for midi.c

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


While cleaning mess in my /home I found a patch which was not applied
(someone forgot to do it). Original message follows. Note the date :-)

Have a nice day.

Stepan Roh

---------- Forwarded message ----------
Date: Mon, 23 Oct 2000 23:13:01 +0200 (CEST)
Subject: Small patch for midi.c

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/