Explorar o código

* don't warn about uninitialised open array out parameters when
only getting their length

git-svn-id: trunk@6904 -

Jonas Maebe %!s(int64=18) %!d(string=hai) anos
pai
achega
2f12e94947
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      compiler/ninl.pas

+ 2 - 1
compiler/ninl.pas

@@ -1701,7 +1701,8 @@ implementation
               in_length_x:
                 begin
                   if ((left.resultdef.typ=arraydef) and
-                      not is_special_array(left.resultdef)) or
+                      (not is_special_array(left.resultdef) or
+                       is_open_array(left.resultdef))) or
                      (left.resultdef.typ=orddef) then
                     set_varstate(left,vs_read,[])
                   else