aboutsummaryrefslogtreecommitdiff
path: root/src/lj_asm_ppc.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lj_asm_ppc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lj_asm_ppc.h b/src/lj_asm_ppc.h
index a4a35547..1cac6fa9 100644
--- a/src/lj_asm_ppc.h
+++ b/src/lj_asm_ppc.h
@@ -331,7 +331,7 @@ static void asm_setupresult(ASMState *as, IRIns *ir, const CCallInfo *ci)
331 331
332static void asm_callx(ASMState *as, IRIns *ir) 332static void asm_callx(ASMState *as, IRIns *ir)
333{ 333{
334 IRRef args[CCI_NARGS_MAX]; 334 IRRef args[CCI_NARGS_MAX*2];
335 CCallInfo ci; 335 CCallInfo ci;
336 IRRef func; 336 IRRef func;
337 IRIns *irf; 337 IRIns *irf;
@@ -1916,7 +1916,7 @@ static void asm_tail_prep(ASMState *as)
1916/* Ensure there are enough stack slots for call arguments. */ 1916/* Ensure there are enough stack slots for call arguments. */
1917static Reg asm_setup_call_slots(ASMState *as, IRIns *ir, const CCallInfo *ci) 1917static Reg asm_setup_call_slots(ASMState *as, IRIns *ir, const CCallInfo *ci)
1918{ 1918{
1919 IRRef args[CCI_NARGS_MAX]; 1919 IRRef args[CCI_NARGS_MAX*2];
1920 uint32_t i, nargs = CCI_XNARGS(ci); 1920 uint32_t i, nargs = CCI_XNARGS(ci);
1921 int nslots = 2, ngpr = REGARG_NUMGPR, nfpr = REGARG_NUMFPR; 1921 int nslots = 2, ngpr = REGARG_NUMGPR, nfpr = REGARG_NUMFPR;
1922 asm_collectargs(as, ir, ci, args); 1922 asm_collectargs(as, ir, ci, args);