2
0
Эх сурвалжийг харах

* Avoid range error in comparisons

Michaël Van Canneyt 2 жил өмнө
parent
commit
44c859ae0a

+ 2 - 2
rtl/inc/objpas.inc

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