Skip to content

Commit

Permalink
Merge pull request #4251 from RobDangerous/development
Browse files Browse the repository at this point in the history
Explicitly use InvariantCulture when parsing floats in C# to avoid sy…
  • Loading branch information
nadako committed May 26, 2015
2 parents 3955191 + 5e26172 commit f481d23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/cs/_std/Std.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit f481d23

Please sign in to comment.