Browse Source

FFI: Fix C type representation for valarrays.

Mike Pall 14 years ago
parent
commit
dd65e00831
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lj_ctype.c

+ 1 - 1
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) {