Skip to content

Commit dc76a47

Browse files
committed
reduce PR scope
1 parent 9e95385 commit dc76a47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base/strings/string.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ function StringIndexError(str, ind)
1717
i = convert(Integer, ind)
1818
StringIndexError(s, i)
1919
end
20-
@noinline string_index_err((@nospecialize s::AbstractString), (@nospecialize i::Integer)) =
21-
throw(StringIndexError(s, i))
20+
@noinline string_index_err((@nospecialize s::AbstractString), i::Integer) =
21+
throw(StringIndexError(s, Int(i)))
2222
function Base.showerror(io::IO, exc::StringIndexError)
2323
s = exc.string
2424
print(io, "StringIndexError: ", "invalid index [$(exc.index)]")

0 commit comments

Comments
 (0)