FFI: Fix C type representation for valarrays.

This commit is contained in:
Mike Pall 2010-12-25 22:33:07 +01:00
parent 461bf77331
commit dd65e00831

View File

@ -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) {