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

tene at svn.parrot.org tene at svn.parrot.org
Sun Oct 4 08:07:46 UTC 2009


Author: tene
Date: Sun Oct  4 08:07:45 2009
New Revision: 41674
URL: https://trac.parrot.org/parrot/changeset/41674

Log:
[pcc] Fix small logic bug in fill_params

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

Modified: branches/pcc_reapply/src/call/args.c
==============================================================================
--- branches/pcc_reapply/src/call/args.c	Sun Oct  4 08:01:46 2009	(r41673)
+++ branches/pcc_reapply/src/call/args.c	Sun Oct  4 08:07:45 2009	(r41674)
@@ -841,11 +841,13 @@
              * argument, fall through to positional argument handling. */
             param_name = NULL;
         }
+        else {
+            /* Positional non-collected */
+            if (named_count > 0)
+                Parrot_ex_throw_from_c_args(interp, NULL, EXCEPTION_INVALID_OPERATION,
+                        "named parameters must follow all positional parameters");
+        }
 
-        /* Positional non-collected */
-        if (named_count > 0)
-            Parrot_ex_throw_from_c_args(interp, NULL, EXCEPTION_INVALID_OPERATION,
-                    "named parameters must follow all positional parameters");
         if (slurpy_count > 0)
             Parrot_ex_throw_from_c_args(interp, NULL, EXCEPTION_INVALID_OPERATION,
                     "slurpy parameters must follow ordinary positional parameters");


More information about the parrot-commits mailing list