소스 검색

[cs] use c# original double.PositiveInfinity instead of Math.POSITIVE_INFINITY, so Math.cs is not even generated for a hello world

Dan Korostelev 10 년 전
부모
커밋
4bdfca3acd
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      std/cs/internal/Runtime.hx

+ 1 - 1
std/cs/internal/Runtime.hx

@@ -487,7 +487,7 @@ import cs.system.Object;
 		if (methodLength == 0)
 			throw "Invalid calling parameters for method " + methods[0].Name;
 
-		var best = Math.POSITIVE_INFINITY;
+		var best = cs.system.Double.PositiveInfinity;
 		var bestMethod = 0;
 		for(i in 0...methodLength)
 		{