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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_ccall.c b/src/lj_ccall.c
index 3f548c30..a3908e50 100644
--- a/src/lj_ccall.c
+++ b/src/lj_ccall.c
@@ -315,7 +315,7 @@ static void ccall_struct_ret(CCallState *cc, int *rcl, uint8_t *dp, CTSize sz)
315/* Infer the destination CTypeID for a vararg argument. */ 315/* Infer the destination CTypeID for a vararg argument. */
316static CTypeID ccall_ctid_vararg(CTState *cts, cTValue *o) 316static CTypeID ccall_ctid_vararg(CTState *cts, cTValue *o)
317{ 317{
318 if (tvisnum(o)) { 318 if (tvisnumber(o)) {
319 return CTID_DOUBLE; 319 return CTID_DOUBLE;
320 } else if (tviscdata(o)) { 320 } else if (tviscdata(o)) {
321 CTypeID id = cdataV(o)->typeid; 321 CTypeID id = cdataV(o)->typeid;