浏览代码

* use sizeuinttype instead of ptruinttype for the array range type in the
structure, created by TVMTWriter.gettabledef

git-svn-id: trunk@34715 -

nickysn 8 年之前
父节点
当前提交
ac186eb85d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/ncgvmt.pas

+ 1 - 1
compiler/ncgvmt.pas

@@ -886,7 +886,7 @@ implementation
         fields.add(countdef);
         fields.add(countdef);
         if count>0 then
         if count>0 then
           begin
           begin
-            arrdef:=carraydef.create(0,count-1,ptruinttype);
+            arrdef:=carraydef.create(0,count-1,sizeuinttype);
             arrdef.elementdef:=elementdef;
             arrdef.elementdef:=elementdef;
             fields.add(arrdef);
             fields.add(arrdef);
           end
           end