소스 검색

[java] use float division for Sys.time (closes #4461)

Some time in the far future, this will cause issues, since double can't contain full long range, but let's leave this for future generations :-P
Dan Korostelev 9 년 전
부모
커밋
041df79697
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      std/java/_std/Sys.hx

+ 1 - 1
std/java/_std/Sys.hx

@@ -144,7 +144,7 @@ using haxe.Int64;
 
 	public static function time() : Float
 	{
-		return cast(System.currentTimeMillis().div(Int64.ofInt(1000)), Float);
+		return cast(System.currentTimeMillis(), Float) / 1000;
 	}
 
 	public static function cpuTime() : Float