* openstrings and openarrays don't have to by valid in order to use

high()/low() on them

git-svn-id: trunk@2484 -
This commit is contained in:
Jonas Maebe 2006-02-08 20:30:49 +00:00
parent 63b9f00afd
commit d11329f9cd

View File

@ -1770,7 +1770,7 @@ implementation
if is_open_array(left.resulttype.def) or
is_array_of_const(left.resulttype.def) then
begin
set_varstate(left,vs_read,[vsf_must_be_valid]);
set_varstate(left,vs_read,[]);
result:=load_high_value_node(tparavarsym(tloadnode(left).symtableentry));
end
else
@ -1802,7 +1802,7 @@ implementation
begin
if is_open_string(left.resulttype.def) then
begin
set_varstate(left,vs_read,[vsf_must_be_valid]);
set_varstate(left,vs_read,[]);
result:=load_high_value_node(tparavarsym(tloadnode(left).symtableentry))
end
else