Browse Source

FFI: Fix resolving of function name redirects on Windows/x86.

Mike Pall 13 years ago
parent
commit
03275ba7fc
1 changed files with 4 additions and 3 deletions
  1. 4 3
      src/lj_clib.c

+ 4 - 3
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;
 }