Re: [AD] Progressions and regressions

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


On 17 Sep 2001, Hein Zelle <hein@xxxxxxxxxx> wrote:
> setup/setup
> 
> (nice small setup X-window appears.)
> -> select autodetect -> open sound system for both midi and sound. Ok -> hangs in the first screen.

Grr, off-by-one errors.  The attached patch was committed. Please
test again with the latest CVS.  Maybe there is another bug.
Index: src/unix/usigalrm.c
===================================================================
RCS file: /cvsroot/alleg/allegro/src/unix/usigalrm.c,v
retrieving revision 1.5
diff -u -r1.5 usigalrm.c
--- src/unix/usigalrm.c	2001/08/09 12:01:15	1.5
+++ src/unix/usigalrm.c	2001/09/24 04:06:25
@@ -320,7 +320,7 @@
    if (i+1 == max_func)
       do {
 	 max_func--;
-      } while (!funcs[max_func] && max_func > 0);
+      } while ((max_func > 0) && !funcs[max_func-1]);
 
    return 0;
 }
Index: src/unix/uthreads.c
===================================================================
RCS file: /cvsroot/alleg/allegro/src/unix/uthreads.c,v
retrieving revision 1.3
diff -u -r1.3 uthreads.c
--- src/unix/uthreads.c	2001/08/09 12:01:15	1.3
+++ src/unix/uthreads.c	2001/09/24 04:06:25
@@ -132,7 +132,7 @@
 		if (i+1 == max_func)
 			do {
 				max_func--;
-			} while (!funcs[max_func] && max_func > 0);
+			} while ((max_func > 0) && !funcs[max_func-1]);
 	}
 
 	bg_man_pthreads_enable_interrupts ();


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