Ver Fonte

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

Dan Korostelev há 10 anos atrás
pai
commit
4bdfca3acd
1 ficheiros alterados com 1 adições e 1 exclusões
  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)
 		{