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 | luajit-03275ba7fcbde3f930e214ffe0fa5a73b3804da2.tar.gz luajit-03275ba7fcbde3f930e214ffe0fa5a73b3804da2.tar.bz2 luajit-03275ba7fcbde3f930e214ffe0fa5a73b3804da2.zip | |
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) | |||
| 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 | } |
