Ver código fonte

* fixed rangecheck error with derefdata

peter 21 anos atrás
pai
commit
4ef34e7e43
1 arquivos alterados com 8 adições e 5 exclusões
  1. 8 5
      compiler/utils/ppudump.pp

+ 8 - 5
compiler/utils/ppudump.pp

@@ -387,14 +387,14 @@ end;
 
 
 procedure ReadLoadUnit;
 procedure ReadLoadUnit;
 var
 var
-  ucrc,uintfcrc : longint;
+  ucrc,uintfcrc : cardinal;
 begin
 begin
   while not ppufile.EndOfEntry do
   while not ppufile.EndOfEntry do
     begin
     begin
       inc(unitnumber);
       inc(unitnumber);
       write('Uses unit: ',ppufile.getstring,' (Number: ',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),')');
       writeln(' (Crc: ',hexstr(ucrc,8),', IntfcCrc: ',hexstr(uintfcrc,8),')');
     end;
     end;
 end;
 end;
@@ -523,7 +523,7 @@ type
 var
 var
   b : tdereftype;
   b : tdereftype;
   first : boolean;
   first : boolean;
-  idx : word;
+  idx : longint;
   i,n : byte;
   i,n : byte;
   pdata : pbyte;
   pdata : pbyte;
 begin
 begin
@@ -2083,7 +2083,10 @@ begin
 end.
 end.
 {
 {
   $Log$
   $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
     * tparaitem removed, use tparavarsym instead
     * parameter order is now calculated from paranr value in tparavarsym
     * parameter order is now calculated from paranr value in tparavarsym