Ver código fonte

Merge branch 'master' into v2.1

Mike Pall 10 anos atrás
pai
commit
0dcd2d1292
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4 0
      src/lj_cparse.c

+ 4 - 0
src/lj_cparse.c

@@ -784,6 +784,10 @@ static void cp_push_type(CPDecl *decl, CTypeID id)
     cp_push(decl, info & ~CTMASK_CID, size);  /* Copy type. */
     break;
   case CT_ARRAY:
+    if ((ct->info & (CTF_VECTOR|CTF_COMPLEX))) {
+      info |= (decl->attr & CTF_QUAL);
+      decl->attr &= ~CTF_QUAL;
+    }
     cp_push_type(decl, ctype_cid(info));  /* Unroll. */
     cp_push(decl, info & ~CTMASK_CID, size);  /* Copy type. */
     decl->stack[decl->pos].sib = 1;  /* Mark as already checked and sized. */