mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 13:59:29 +02:00
compiler: for-in loop: fix temporary array range type
git-svn-id: trunk@14095 -
This commit is contained in:
parent
1cf64c032f
commit
e520a2b941
@ -330,7 +330,7 @@ begin
|
||||
if assigned(tmpdef) and (tmpdef.typ=arraydef) and (tarraydef(tmpdef).arrayoptions = []) then
|
||||
begin
|
||||
elementcount:=elementcount*tarraydef(tmpdef).elecount;
|
||||
convertdef:=tarraydef.create(0,elementcount-1,tarraydef(tmpdef).elementdef);
|
||||
convertdef:=tarraydef.create(0,elementcount-1,s32inttype);
|
||||
tarraydef(convertdef).elementdef:=tarraydef(tmpdef).elementdef;
|
||||
expression:=expr.getcopy;
|
||||
expression:=ctypeconvnode.create_internal(expression,convertdef);
|
||||
|
Loading…
Reference in New Issue
Block a user