diff options
author | Mike Pall <mike> | 2012-03-31 22:19:47 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2012-03-31 22:19:47 +0200 |
commit | 03275ba7fcbde3f930e214ffe0fa5a73b3804da2 (patch) | |
tree | 354e28cc1dc9e1455e6bd0981abaf53222bf5d79 | |
parent | bcd459aa0e5ab8e6df4a89c75c4f9f00ec7d0176 (diff) | |
download | luajit2-03275ba7fcbde3f930e214ffe0fa5a73b3804da2.tar.gz |
FFI: Fix resolving of function name redirects on Windows/x86.
-rw-r--r-- | src/lj_clib.c | 7 |
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; } |