فهرست منبع

* changed the sechdrofs,secstrofs and ImgOffset types to 32-bit to prevent
overflow errors on i8086 (ptruint is 16-bit in certain i8086 memory models;
file offsets, however, still remain 32-bit)

git-svn-id: trunk@39036 -

nickysn 7 سال پیش
والد
کامیت
c8cbb1daea
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      rtl/inc/exeinfo.pp

+ 2 - 2
rtl/inc/exeinfo.pp

@@ -36,11 +36,11 @@ type
     isopen    : boolean;
     nsects    : longint;
     sechdrofs,
-    secstrofs : ptruint;
+    secstrofs : {$ifdef cpui8086}longword{$else}ptruint{$endif};
     processaddress : ptruint;
     FunctionRelative: boolean;
     // Offset of the binary image forming permanent offset to all retrieved values
-    ImgOffset: ptruint;
+    ImgOffset: {$ifdef cpui8086}longword{$else}ptruint{$endif};
     filename  : string;
     // Allocate static buffer for reading data
     buf       : array[0..4095] of byte;