[svn:parrot] r41799 - branches/pcc_reapply/src/call

tene at svn.parrot.org tene at svn.parrot.org
Sat Oct 10 19:31:56 UTC 2009


Author: tene
Date: Sat Oct 10 19:31:55 2009
New Revision: 41799
URL: https://trac.parrot.org/parrot/changeset/41799

Log:
[pcc] Add a termination condition to the slurpy-result-filling loop.

Modified:
   branches/pcc_reapply/src/call/args.c

Modified: branches/pcc_reapply/src/call/args.c
==============================================================================
--- branches/pcc_reapply/src/call/args.c	Sat Oct 10 19:19:33 2009	(r41798)
+++ branches/pcc_reapply/src/call/args.c	Sat Oct 10 19:31:55 2009	(r41799)
@@ -1473,7 +1473,7 @@
             collect_positional = pmc_new(interp,
                     Parrot_get_ctx_HLL_type(interp, enum_class_ResizablePMCArray));
             /* Iterate over all positional arguments in the returns list. */
-            while (!(return_flags & PARROT_ARG_NAME)) {
+            while (!(return_flags & PARROT_ARG_NAME) && return_index < return_count) {
                 INTVAL constant;
                 return_flags = VTABLE_get_integer_keyed_int(interp, raw_sig, return_index);
                 constant = PARROT_ARG_CONSTANT_ISSET(return_flags);


More information about the parrot-commits mailing list