浏览代码

* fixed rangecheck error with derefdata

peter 21 年之前
父节点
当前提交
4ef34e7e43
共有 1 个文件被更改,包括 8 次插入5 次删除
  1. 8 5
      compiler/utils/ppudump.pp

+ 8 - 5
compiler/utils/ppudump.pp

@@ -387,14 +387,14 @@ end;
 
 procedure ReadLoadUnit;
 var
-  ucrc,uintfcrc : longint;
+  ucrc,uintfcrc : cardinal;
 begin
   while not ppufile.EndOfEntry do
     begin
       inc(unitnumber);
       write('Uses unit: ',ppufile.getstring,' (Number: ',unitnumber,')');
-      ucrc:=ppufile.getlongint;
-      uintfcrc:=ppufile.getlongint;
+      ucrc:=cardinal(ppufile.getlongint);
+      uintfcrc:=cardinal(ppufile.getlongint);
       writeln(' (Crc: ',hexstr(ucrc,8),', IntfcCrc: ',hexstr(uintfcrc,8),')');
     end;
 end;
@@ -523,7 +523,7 @@ type
 var
   b : tdereftype;
   first : boolean;
-  idx : word;
+  idx : longint;
   i,n : byte;
   pdata : pbyte;
 begin
@@ -2083,7 +2083,10 @@ begin
 end.
 {
   $Log$
-  Revision 1.59  2004-11-15 23:35:31  peter
+  Revision 1.60  2004-11-16 20:49:08  peter
+  * fixed rangecheck error with derefdata
+
+  Revision 1.59  2004/11/15 23:35:31  peter
     * tparaitem removed, use tparavarsym instead
     * parameter order is now calculated from paranr value in tparavarsym