From: Mike Pall Date: Sat, 31 Mar 2012 20:19:47 +0000 (+0200) Subject: FFI: Fix resolving of function name redirects on Windows/x86. X-Git-Tag: v2.0.0-beta10~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03275ba7fcbde3f930e214ffe0fa5a73b3804da2;p=thirdparty%2FLuaJIT.git FFI: Fix resolving of function name redirects on Windows/x86. --- 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; }