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

This commit is contained in:
Mike Pall 2012-03-31 22:19:47 +02:00
parent bcd459aa0e
commit 03275ba7fc

View File

@ -301,10 +301,11 @@ 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));
if (ctype_isfield(ct->info)) {
d = ctype_rawchild(cts, ct);
n += ((d->size + 3) & ~3);
}
}
return n;
}
#endif