We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e95385 commit dc76a47Copy full SHA for dc76a47
base/strings/string.jl
@@ -17,8 +17,8 @@ function StringIndexError(str, ind)
17
i = convert(Integer, ind)
18
StringIndexError(s, i)
19
end
20
-@noinline string_index_err((@nospecialize s::AbstractString), (@nospecialize i::Integer)) =
21
- throw(StringIndexError(s, i))
+@noinline string_index_err((@nospecialize s::AbstractString), i::Integer) =
+ throw(StringIndexError(s, Int(i)))
22
function Base.showerror(io::IO, exc::StringIndexError)
23
s = exc.string
24
print(io, "StringIndexError: ", "invalid index [$(exc.index)]")
0 commit comments