mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 10:19:17 +02:00
* 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:
parent
63b9f00afd
commit
d11329f9cd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user