فهرست منبع

* Avoid range error in comparisons

Michaël Van Canneyt 2 سال پیش
والد
کامیت
c39e51485c
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      rtl/inc/objpas.inc

+ 2 - 2
rtl/inc/objpas.inc

@@ -548,7 +548,7 @@ end;
 
         var
            methodtable : pmethodnametable;
-           i : dword;
+           i : longint; // in case count=0
            ovmt : PVmt;
 
         begin
@@ -574,7 +574,7 @@ end;
       class function TObject.MethodName(address : codepointer) : shortstring;
         var
            methodtable : pmethodnametable;
-           i : dword;
+           i : longint; // in case count=0
            ovmt : PVmt;
         begin
            ovmt:=PVmt(self);