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 d9174e7d..a4a35547 100644
--- a/src/lj_asm_ppc.h
+++ b/src/lj_asm_ppc.h
@@ -249,7 +249,7 @@ static int asm_fusemadd(ASMState *as, IRIns *ir, PPCIns pi, PPCIns pir)
249/* Generate a call to a C function. */ 249/* Generate a call to a C function. */
250static void asm_gencall(ASMState *as, const CCallInfo *ci, IRRef *args) 250static void asm_gencall(ASMState *as, const CCallInfo *ci, IRRef *args)
251{ 251{
252 uint32_t n, nargs = CCI_NARGS(ci); 252 uint32_t n, nargs = CCI_XNARGS(ci);
253 int32_t ofs = 8; 253 int32_t ofs = 8;
254 Reg gpr = REGARG_FIRSTGPR, fpr = REGARG_FIRSTFPR; 254 Reg gpr = REGARG_FIRSTGPR, fpr = REGARG_FIRSTFPR;
255 if ((void *)ci->func) 255 if ((void *)ci->func)
@@ -1917,7 +1917,7 @@ static void asm_tail_prep(ASMState *as)
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];
1920 uint32_t i, nargs = (int)CCI_NARGS(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);
1923 for (i = 0; i < nargs; i++) 1923 for (i = 0; i < nargs; i++)