mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 09:26:15 +02:00
* Fix most test suite regressions.
git-svn-id: trunk@7931 -
This commit is contained in:
parent
30f733eed5
commit
a0da139ec6
@ -722,8 +722,10 @@ implementation
|
|||||||
if ((right.nodetype<>rangen) and is_integer(right.resultdef)) or (left.resultdef.typ<>arraydef) then
|
if ((right.nodetype<>rangen) and is_integer(right.resultdef)) or (left.resultdef.typ<>arraydef) then
|
||||||
case left.resultdef.typ of
|
case left.resultdef.typ of
|
||||||
arraydef:
|
arraydef:
|
||||||
if ado_IsDynamicArray in Tarraydef(left.resultdef).arrayoptions then
|
// if ado_IsDynamicArray in Tarraydef(left.resultdef).arrayoptions then
|
||||||
{Convert indexes into dynamic arrays to aword.}
|
if (Tarraydef(left.resultdef).lowrange=0) and (Tarraydef(left.resultdef).highrange=-1) then
|
||||||
|
{Arrays without a high bound (dynamic arrays, open arrays) are zero based,
|
||||||
|
convert indexes into these arrays to aword.}
|
||||||
inserttypeconv(right,uinttype)
|
inserttypeconv(right,uinttype)
|
||||||
else
|
else
|
||||||
{Convert array indexes to low_bound..high_bound.}
|
{Convert array indexes to low_bound..high_bound.}
|
||||||
|
Loading…
Reference in New Issue
Block a user