-
-
Couldn't load subscription status.
- Fork 5.7k
Open
Labels
bignumsBigInt and BigFloatBigInt and BigFloatbugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behavior
Description
julia> parse(Int, "100 10")
ERROR: ArgumentError: extra characters after whitespace in "100 10"
julia> parse(BigInt, "100 10")
10010The second case is the oddity here, and it seems to originate from
Line 284 in f5d1557
| err = GC.@preserve bstr MPZ.set_str!(z, pointer(bstr)+(i-firstindex(bstr)), base) |
aka
MPZ.set_str! does not follow Julia conventions for parsing numbers.
Originally posted by @Liozou in #44550 (comment)
Copy-pasted from #44550, discovered by @henriquebecker91
Metadata
Metadata
Assignees
Labels
bignumsBigInt and BigFloatBigInt and BigFloatbugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behavior