summaryrefslogtreecommitdiff
path: root/src/lj_ccall.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_ccall.c')
-rw-r--r--src/lj_ccall.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lj_ccall.c b/src/lj_ccall.c
index 281b45a6..c1c04b6f 100644
--- a/src/lj_ccall.c
+++ b/src/lj_ccall.c
@@ -402,7 +402,7 @@ static void ccall_struct_ret(CCallState *cc, int *rcl, uint8_t *dp, CTSize sz)
402/* -- Common C call handling ---------------------------------------------- */ 402/* -- Common C call handling ---------------------------------------------- */
403 403
404/* Infer the destination CTypeID for a vararg argument. */ 404/* Infer the destination CTypeID for a vararg argument. */
405static CTypeID ccall_ctid_vararg(CTState *cts, cTValue *o) 405CTypeID lj_ccall_ctid_vararg(CTState *cts, cTValue *o)
406{ 406{
407 if (tvisnumber(o)) { 407 if (tvisnumber(o)) {
408 return CTID_DOUBLE; 408 return CTID_DOUBLE;
@@ -506,7 +506,7 @@ static int ccall_set_args(lua_State *L, CTState *cts, CType *ct,
506 } else { 506 } else {
507 if (!(ct->info & CTF_VARARG)) 507 if (!(ct->info & CTF_VARARG))
508 lj_err_caller(L, LJ_ERR_FFI_NUMARG); /* Too many arguments. */ 508 lj_err_caller(L, LJ_ERR_FFI_NUMARG); /* Too many arguments. */
509 did = ccall_ctid_vararg(cts, o); /* Infer vararg type. */ 509 did = lj_ccall_ctid_vararg(cts, o); /* Infer vararg type. */
510 isva = 1; 510 isva = 1;
511 } 511 }
512 d = ctype_raw(cts, did); 512 d = ctype_raw(cts, did);