mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
FFI: Fix C type representation for valarrays.
This commit is contained in:
parent
461bf77331
commit
dd65e00831
@ -450,8 +450,8 @@ static void ctype_repr(CTRepr *ctr, CTypeID id)
|
|||||||
ctr->needsp = 1;
|
ctr->needsp = 1;
|
||||||
break;
|
break;
|
||||||
case CT_ARRAY:
|
case CT_ARRAY:
|
||||||
ctr->needsp = 1;
|
|
||||||
if (ctype_isrefarray(info)) {
|
if (ctype_isrefarray(info)) {
|
||||||
|
ctr->needsp = 1;
|
||||||
if (ptrto) { ptrto = 0; ctype_prepc(ctr, '('); ctype_appc(ctr, ')'); }
|
if (ptrto) { ptrto = 0; ctype_prepc(ctr, '('); ctype_appc(ctr, ')'); }
|
||||||
ctype_appc(ctr, '[');
|
ctype_appc(ctr, '[');
|
||||||
if (size != CTSIZE_INVALID) {
|
if (size != CTSIZE_INVALID) {
|
||||||
|
Loading…
Reference in New Issue
Block a user