Browse Source

Merge pull request #4251 from RobDangerous/development

Explicitly use InvariantCulture when parsing floats in C# to avoid sy…
Dan Korostelev 10 years ago
parent
commit
f481d23fd2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      std/cs/_std/Std.hx

+ 1 - 1
std/cs/_std/Std.hx

@@ -173,7 +173,7 @@ import cs.internal.Exceptions;
 			x = x.substr(0,i);
 		}
 		return try
-			cs.system.Double.Parse(x, (null : cs.system.IFormatProvider))
+			cs.system.Double.Parse(x, cs.system.globalization.CultureInfo.InvariantCulture)
 		catch(e:Dynamic)
 			Math.NaN;
 	}