Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Needs a sanity check from someone who knows the detail of the parser code @Keno? @StefanKarpinski?
  • Loading branch information
samoconnor authored Oct 2, 2018
1 parent a2df80e commit 14d7be0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/parse.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function parseint_preamble(signed::Bool, base::Int, s::AbstractString, startpos:
(j == 0) && (return 0, 0, 0)

if base == 0
if c == '0' && i <= ncodeunits(s)
if c == '0' && i <= endpos
c, i = iterate(s,i)::Tuple{Char, Int}
base = c=='b' ? 2 : c=='o' ? 8 : c=='x' ? 16 : 10
if base != 10
Expand Down

0 comments on commit 14d7be0

Please sign in to comment.