Author: leo
Date: Tue Nov  8 11:44:21 2005
New Revision: 9847

Modified:
   trunk/imcc/reg_alloc.c
Log:
fix off by one error in reg_alloc.c

Modified: trunk/imcc/reg_alloc.c
==============================================================================
--- trunk/imcc/reg_alloc.c      (original)
+++ trunk/imcc/reg_alloc.c      Tue Nov  8 11:44:21 2005
@@ -640,8 +640,8 @@ try_allocate(Parrot_Interp interpreter, 
      * unit->n_symbols should be an upper limit of needed colors
      */
     n = unit->n_symbols;
-    if (unit->max_color > n)
-        n = unit->max_color;
+    if (unit->max_color >= n)
+        n = unit->max_color + 1;
     avail = mem_sys_allocate(n);
 
     for (x = 0; x < unit->n_symbols; ++x) {

Reply via email to