[svn:parrot] r47854 - branches/dynop_mapping/src/pmc
plobsing at svn.parrot.org
plobsing at svn.parrot.org
Sat Jun 26 06:26:07 UTC 2010
Author: plobsing
Date: Sat Jun 26 06:26:07 2010
New Revision: 47854
URL: https://trac.parrot.org/parrot/changeset/47854
Log:
fix sub argument introspection
Modified:
branches/dynop_mapping/src/pmc/sub.pmc
Modified: branches/dynop_mapping/src/pmc/sub.pmc
==============================================================================
--- branches/dynop_mapping/src/pmc/sub.pmc Sat Jun 26 05:00:12 2010 (r47853)
+++ branches/dynop_mapping/src/pmc/sub.pmc Sat Jun 26 06:26:07 2010 (r47854)
@@ -847,7 +847,8 @@
Parrot_sub_arginfo);
/* If the first instruction is a get_params... */
- if (*pc == PARROT_OP_get_params_pc) {
+ if (sub->seg->op_func_table[*pc]
+ == interp->op_func_table[PARROT_OP_get_params_pc]) {
/* Get the signature (the next thing in the bytecode). */
PMC * const sig = PF_CONST(sub->seg, *(++pc))->u.key;
More information about the parrot-commits
mailing list