From dd65e00831745a5fb9b29be2188d2d094f350e88 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Sat, 25 Dec 2010 22:33:07 +0100 Subject: [PATCH] FFI: Fix C type representation for valarrays. --- src/lj_ctype.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {