From: Mike Pall Date: Sat, 25 Dec 2010 21:33:07 +0000 (+0100) Subject: FFI: Fix C type representation for valarrays. X-Git-Tag: v2.0.0-beta6~120 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd65e00831745a5fb9b29be2188d2d094f350e88;p=thirdparty%2FLuaJIT.git FFI: Fix C type representation for valarrays. --- diff --git a/src/lj_ctype.c b/src/lj_ctype.c index cb60dbbc..93f63140 100644 --- a/src/lj_ctype.c +++ b/src/lj_ctype.c @@ -450,8 +450,8 @@ static void ctype_repr(CTRepr *ctr, CTypeID id) ctr->needsp = 1; break; case CT_ARRAY: - ctr->needsp = 1; if (ctype_isrefarray(info)) { + ctr->needsp = 1; if (ptrto) { ptrto = 0; ctype_prepc(ctr, '('); ctype_appc(ctr, ')'); } ctype_appc(ctr, '['); if (size != CTSIZE_INVALID) {