Created
July 11, 2015 19:17
-
-
Save tkelman/c9543a055f60addaa9be to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/base/parse.jl b/base/parse.jl | |
index d7c664d..66d8ced 100644 | |
--- a/base/parse.jl | |
+++ b/base/parse.jl | |
@@ -1555,7 +1555,7 @@ function tryparse_internal{T<:Integer}(::Type{T}, s::AbstractString, startpos::I | |
end | |
base = convert(T,base) | |
- m::T = div(typemax(T)-base+1,base) | |
+ m::T = T===UInt128 || T===Int128 ? typemax(T) : div(typemax(T)-base+1,base) | |
n::T = 0 | |
while n <= m | |
d::T = '0' <= c <= '9' ? c-'0' : |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment