]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
FFI: Fix C type representation for valarrays.
authorMike Pall <mike>
Sat, 25 Dec 2010 21:33:07 +0000 (22:33 +0100)
committerMike Pall <mike>
Sat, 25 Dec 2010 21:33:07 +0000 (22:33 +0100)
src/lj_ctype.c

index cb60dbbc19cbb05f540b0a60b46bd18c2030aac9..93f6314016634189e4a50c7f461f30fbf458741f 100644 (file)
@@ -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) {