compiler: for-in loop: fix temporary array range type

git-svn-id: trunk@14095 -
This commit is contained in:
paul 2009-11-07 10:56:54 +00:00
parent 1cf64c032f
commit e520a2b941

View File

@ -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);