diff --git a/compiler/ncgvmt.pas b/compiler/ncgvmt.pas index bdcc1cb74a..6625ab14e2 100644 --- a/compiler/ncgvmt.pas +++ b/compiler/ncgvmt.pas @@ -886,7 +886,7 @@ implementation fields.add(countdef); if count>0 then begin - arrdef:=carraydef.create(0,count-1,ptruinttype); + arrdef:=carraydef.create(0,count-1,sizeuinttype); arrdef.elementdef:=elementdef; fields.add(arrdef); end