aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Pall <mike>2012-03-31 22:19:47 +0200
committerMike Pall <mike>2012-03-31 22:19:47 +0200
commit03275ba7fcbde3f930e214ffe0fa5a73b3804da2 (patch)
tree354e28cc1dc9e1455e6bd0981abaf53222bf5d79 /src
parentbcd459aa0e5ab8e6df4a89c75c4f9f00ec7d0176 (diff)
downloadluajit-03275ba7fcbde3f930e214ffe0fa5a73b3804da2.tar.gz
luajit-03275ba7fcbde3f930e214ffe0fa5a73b3804da2.tar.bz2
luajit-03275ba7fcbde3f930e214ffe0fa5a73b3804da2.zip
FFI: Fix resolving of function name redirects on Windows/x86.
Diffstat (limited to 'src')
-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}