[svn:parrot] r41162 - trunk/src/runcore

cotto at svn.parrot.org cotto at svn.parrot.org
Tue Sep 8 20:56:09 UTC 2009


Author: cotto
Date: Tue Sep  8 20:56:07 2009
New Revision: 41162
URL: https://trac.parrot.org/parrot/changeset/41162

Log:
[profiling] fix another off-by-one error

Modified:
   trunk/src/runcore/profiling.c

Modified: trunk/src/runcore/profiling.c
==============================================================================
--- trunk/src/runcore/profiling.c	Tue Sep  8 18:49:41 2009	(r41161)
+++ trunk/src/runcore/profiling.c	Tue Sep  8 20:56:07 2009	(r41162)
@@ -197,7 +197,7 @@
     /* if we're in a nested runloop, */
     if (runcore->level != 0) {
 
-        if (runcore->level > runcore->time_size) {
+        if (runcore->level >= runcore->time_size) {
             runcore->time_size *= 2;
             runcore->time =
                 mem_realloc_n_typed(runcore->time, runcore->time_size+1, UHUGEINTVAL);


More information about the parrot-commits mailing list