mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-10 01:12:43 +02:00
* Fix tarray7
* Use is_special_array. git-svn-id: trunk@7932 -
This commit is contained in:
parent
a0da139ec6
commit
06b3478226
@ -719,11 +719,10 @@ implementation
|
|||||||
{ maybe type conversion for the index value, but
|
{ maybe type conversion for the index value, but
|
||||||
do not convert enums,booleans,char
|
do not convert enums,booleans,char
|
||||||
and do not convert range nodes }
|
and do not convert range nodes }
|
||||||
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 is_special_array(left.resultdef) then
|
||||||
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,
|
{Arrays without a high bound (dynamic arrays, open arrays) are zero based,
|
||||||
convert indexes into these arrays to aword.}
|
convert indexes into these arrays to aword.}
|
||||||
inserttypeconv(right,uinttype)
|
inserttypeconv(right,uinttype)
|
||||||
|
Loading…
Reference in New Issue
Block a user