mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
FFI: Don't propagate qualifiers into subtypes of complex.
This commit is contained in:
parent
575bfe5028
commit
a5b1c4d98e
@ -798,6 +798,10 @@ static void cp_push_type(CPDecl *decl, CTypeID id)
|
||||
cp_push(decl, info & ~CTMASK_CID, size); /* Copy type. */
|
||||
break;
|
||||
case CT_ARRAY:
|
||||
if ((ct->info & (CTF_VECTOR|CTF_COMPLEX))) {
|
||||
info |= (decl->attr & CTF_QUAL);
|
||||
decl->attr &= ~CTF_QUAL;
|
||||
}
|
||||
cp_push_type(decl, ctype_cid(info)); /* Unroll. */
|
||||
cp_push(decl, info & ~CTMASK_CID, size); /* Copy type. */
|
||||
decl->stack[decl->pos].sib = 1; /* Mark as already checked and sized. */
|
||||
|
Loading…
Reference in New Issue
Block a user