Skip to content

Commit ce86c2c

Browse files
committed
fix deprecation warning
1 parent b946add commit ce86c2c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/fmtspec.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,10 @@ function FormatSpec(s::String)
121121
if a4[1] == '0'
122122
_zpad = true
123123
if length(a4) > 1
124-
_width = parseint(Int,a4[2:end])
124+
_width = parse(Int,a4[2:end])
125125
end
126126
else
127-
_width = parseint(Int,a4)
127+
_width = parse(Int,a4)
128128
end
129129
end
130130

@@ -135,7 +135,7 @@ function FormatSpec(s::String)
135135

136136
# a6 [.prec]
137137
if a6 != nothing
138-
_prec = parseint(Int,a6[2:end])
138+
_prec = parse(Int,a6[2:end])
139139
end
140140

141141
# a7: [type]

src/formatexpr.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ function make_argspec(s::String, pos::Int)
2828
if !isempty(s)
2929
ifil = searchindex(s, "|>")
3030
if ifil == 0
31-
iarg = parseint(Int,s)
31+
iarg = parse(Int,s)
3232
else
33-
iarg = ifil > 1 ? parseint(Int,s[1:ifil-1]) : -1
33+
iarg = ifil > 1 ? parse(Int,s[1:ifil-1]) : -1
3434
hasfil = true
3535
ff = eval(symbol(s[ifil+2:end]))
3636
end

0 commit comments

Comments
 (0)