aboutsummaryrefslogtreecommitdiff
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)
301 while (ct->sib) { 301 while (ct->sib) {
302 CType *d; 302 CType *d;
303 ct = ctype_get(cts, ct->sib); 303 ct = ctype_get(cts, ct->sib);
304 lua_assert(ctype_isfield(ct->info)); 304 if (ctype_isfield(ct->info)) {
305 d = ctype_rawchild(cts, ct); 305 d = ctype_rawchild(cts, ct);
306 n += ((d->size + 3) & ~3); 306 n += ((d->size + 3) & ~3);
307 }
307 } 308 }
308 return n; 309 return n;
309} 310}