From 91b89423df530c588702a5227a1f1819a4242579 Mon Sep 17 00:00:00 2001 From: Brian Gernhardt Date: Wed, 27 Jun 2012 17:15:44 -0400 Subject: [PATCH] disasm: Save PCC arrays in PCC ops Forgot to add them to the Op before using them to parse the other arguments. --- src/disasm.winxed | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/disasm.winxed b/src/disasm.winxed index 7739668..fdcd1d4 100644 --- a/src/disasm.winxed +++ b/src/disasm.winxed @@ -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;