소스 검색

* Avoid range error in comparisons

Michaël Van Canneyt 2 년 전
부모
커밋
44c859ae0a
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      rtl/inc/objpas.inc

+ 2 - 2
rtl/inc/objpas.inc

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