Browse Source

* Fix int not working on IE

michael 7 năm trước cách đây
mục cha
commit
0f607847a6
1 tập tin đã thay đổi với 2 bổ sung3 xóa
  1. 2 3
      packages/rtl/system.pas

+ 2 - 3
packages/rtl/system.pas

@@ -455,10 +455,9 @@ end;
 
 function Int(const A: Double): double;
 
-  function FTrunc(const A: Double): double; overload; external name 'Math.trunc';
-
 begin
-  Result:=FTrunc(A);
+  // trunc contains fix for missing Math.trunc in IE
+  Result:=Trunc(A);
 end;
 
 function Number(S: String): Double; external name 'Number';