-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix parse(ComplexF64, "inf") #31615
fix parse(ComplexF64, "inf") #31615
Conversation
I've added backport labels and triage to discuss but maybe the latter is unnecessary since this seems like a straightforward bugfix so long as it applies. |
Seems to have relevant failures on windows. |
Test failures from the windows buildbots look highly relevant. For example:
|
@mbauman, is that a Windows bug? On my Mac I get: julia> parse(Float64, " nan")
NaN We should definitely be consistent across platforms here. |
I'm just copy-pasting the error message from the buildbots. I don't know anything more. |
On Windows 10 with Julia 1.1.0 I get this:
|
Sounds like a bug in on Seems like the bug dates to #5988 in Julia 0.3. |
added a bugfix for windows strtod |
AppVeyor is now passing. Travis Linux x86 failures (in zillions of tests) look unrelated. win32 buildbot timeout looks unrelated. Note that this PR does not need to be squashed — it's two commits that fix two bugs. |
I noticed that the parsing code in #24713 was getting confused by the
i
in"inf"
when parsing a purely real infinity. This PR fixes that and adds some more tests for floating-point values.Probably could be backported?