Browse Source

* indexes in vecn's are only read, not written

git-svn-id: trunk@1976 -
Jonas Maebe 19 years ago
parent
commit
62cbd007f1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/htypechk.pas

+ 1 - 1
compiler/htypechk.pas

@@ -772,7 +772,7 @@ implementation
                p:=tunarynode(p).left;
                p:=tunarynode(p).left;
              vecn:
              vecn:
                begin
                begin
-                 set_varstate(tbinarynode(p).right,vs_readwritten,[vsf_must_be_valid]);
+                 set_varstate(tbinarynode(p).right,vs_read,[vsf_must_be_valid]);
                  if not(tunarynode(p).left.resulttype.def.deftype in [stringdef,arraydef]) then
                  if not(tunarynode(p).left.resulttype.def.deftype in [stringdef,arraydef]) then
                    include(varstateflags,vsf_must_be_valid);
                    include(varstateflags,vsf_must_be_valid);
                  p:=tunarynode(p).left;
                  p:=tunarynode(p).left;