ソースを参照

* 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);