Browse Source

[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 years ago
parent
commit
4bdfca3acd
1 changed files with 1 additions and 1 deletions
  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)
 		if (methodLength == 0)
 			throw "Invalid calling parameters for method " + methods[0].Name;
 			throw "Invalid calling parameters for method " + methods[0].Name;
 
 
-		var best = Math.POSITIVE_INFINITY;
+		var best = cs.system.Double.PositiveInfinity;
 		var bestMethod = 0;
 		var bestMethod = 0;
 		for(i in 0...methodLength)
 		for(i in 0...methodLength)
 		{
 		{