From ac186eb85daa40db76936033a7097953b9a0e733 Mon Sep 17 00:00:00 2001
From: nickysn <nickysn@gmail.com>
Date: Fri, 14 Oct 2016 13:22:05 +0000
Subject: [PATCH] * use sizeuinttype instead of ptruinttype for the array range
 type in the   structure, created by TVMTWriter.gettabledef

git-svn-id: trunk@34715 -
---
 compiler/ncgvmt.pas | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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