summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lj_clib.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lj_clib.c b/src/lj_clib.c
index 370dab7c..6470c768 100644
--- a/src/lj_clib.c
+++ b/src/lj_clib.c
@@ -301,9 +301,10 @@ static CTSize clib_func_argsize(CTState *cts, CType *ct)
while (ct->sib) {
CType *d;
ct = ctype_get(cts, ct->sib);
- lua_assert(ctype_isfield(ct->info));
- d = ctype_rawchild(cts, ct);
- n += ((d->size + 3) & ~3);
+ if (ctype_isfield(ct->info)) {
+ d = ctype_rawchild(cts, ct);
+ n += ((d->size + 3) & ~3);
+ }
}
return n;
}