develooper Front page | perl.cvs.parrot | Postings from January 2009

[svn:parrot] r35376 - branches/pcc_invoke_convert/src

From:
Whiteknight
Date:
January 10, 2009 19:20
Subject:
[svn:parrot] r35376 - branches/pcc_invoke_convert/src
Message ID:
20090111031951.F08A0CB9F9@x12.develooper.com
Author: Whiteknight
Date: Sat Jan 10 19:19:51 2009
New Revision: 35376

Modified:
   branches/pcc_invoke_convert/src/multidispatch.c

Log:
[pcc_invoke_convert] fix an off-by-one issuewhen creating signature PMCs for methods

Modified: branches/pcc_invoke_convert/src/multidispatch.c
==============================================================================
--- branches/pcc_invoke_convert/src/multidispatch.c	(original)
+++ branches/pcc_invoke_convert/src/multidispatch.c	Sat Jan 10 19:19:51 2009
@@ -879,6 +879,7 @@
                         Parrot_ex_throw_from_c_args(interp, NULL,
                             EXCEPTION_INVALID_OPERATION,
                             "Multiple Dispatch: only the first argument can be an invocant");
+                    i++;
                 }
                 else {
                     PMC *pmc_arg = VTABLE_get_pmc_keyed_int(interp, sig_obj, i);



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About