]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
FFI: Fix resolving of function name redirects on Windows/x86.
authorMike Pall <mike>
Sat, 31 Mar 2012 20:19:47 +0000 (22:19 +0200)
committerMike Pall <mike>
Sat, 31 Mar 2012 20:19:47 +0000 (22:19 +0200)
src/lj_clib.c

index 370dab7c4c3339c9833d852483d5412a44973044..6470c7686efd84a834c6bf32c74094ed280f64ca 100644 (file)
@@ -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;
 }