aboutsummaryrefslogtreecommitdiff
path: root/src/lj_asm_x86.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_asm_x86.h')
-rw-r--r--src/lj_asm_x86.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lj_asm_x86.h b/src/lj_asm_x86.h
index 8bae1789..64441ccb 100644
--- a/src/lj_asm_x86.h
+++ b/src/lj_asm_x86.h
@@ -609,7 +609,7 @@ static void *asm_callx_func(ASMState *as, IRIns *irf, IRRef func)
609 609
610static void asm_callx(ASMState *as, IRIns *ir) 610static void asm_callx(ASMState *as, IRIns *ir)
611{ 611{
612 IRRef args[CCI_NARGS_MAX]; 612 IRRef args[CCI_NARGS_MAX*2];
613 CCallInfo ci; 613 CCallInfo ci;
614 IRRef func; 614 IRRef func;
615 IRIns *irf; 615 IRIns *irf;
@@ -2742,7 +2742,7 @@ static void asm_ir(ASMState *as, IRIns *ir)
2742/* Ensure there are enough stack slots for call arguments. */ 2742/* Ensure there are enough stack slots for call arguments. */
2743static Reg asm_setup_call_slots(ASMState *as, IRIns *ir, const CCallInfo *ci) 2743static Reg asm_setup_call_slots(ASMState *as, IRIns *ir, const CCallInfo *ci)
2744{ 2744{
2745 IRRef args[CCI_NARGS_MAX]; 2745 IRRef args[CCI_NARGS_MAX*2];
2746 int nslots; 2746 int nslots;
2747 asm_collectargs(as, ir, ci, args); 2747 asm_collectargs(as, ir, ci, args);
2748 nslots = asm_count_call_slots(as, ci, args); 2748 nslots = asm_count_call_slots(as, ci, args);