FFI: Fix initialization of unions of subtypes.

Thanks to Peter Colberg.
This commit is contained in:
Mike Pall 2014-09-08 23:37:22 +02:00
parent 247ead6718
commit 41156fe1cd

View File

@ -702,6 +702,7 @@ static void cconv_substruct_init(CTState *cts, CType *d, uint8_t *dp,
} else if (ctype_isxattrib(df->info, CTA_SUBTYPE)) {
cconv_substruct_init(cts, ctype_rawchild(cts, df),
dp+df->size, o, len, ip);
if ((d->info & CTF_UNION)) break;
} /* Ignore all other entries in the chain. */
}
}