Skip to content

Commit

Permalink
disasm: Save PCC arrays in PCC ops
Browse files Browse the repository at this point in the history
Forgot to add them to the Op before using them to parse the
other arguments.
  • Loading branch information
Benabik committed Jun 27, 2012
1 parent b0552dd commit 91b8942
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/disasm.winxed
Expand Up @@ -301,7 +301,10 @@ function read_packfile(var packfile) {
case 'get_results':
case 'get_params':
case 'set_returns':
var arg_types = ret.pmcs[bytecode[++pc]];
:PACT.Packfile.Constant.Reference ref(packfile,
PARROT_ARG_PMC, bytecode[++pc]);
push(pop.args, ref);
var arg_types = ret.pmcs[int(ref.value)];
argc = elements(arg_types);
for (i = 0; i < argc; ++i) {
++pc;
Expand Down

0 comments on commit 91b8942

Please sign in to comment.