Skip to content

Commit

Permalink
nit type-stability in StackTraces.lookup line variable (#41847)
Browse files Browse the repository at this point in the history
  • Loading branch information
thchr authored Aug 9, 2021
1 parent 727fe6a commit a1e9fd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/stacktraces.jl
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function lookup(ip::Union{Base.InterpreterIP,Core.Compiler.InterpreterIP})
else
func = top_level_scope_sym
file = empty_sym
line = 0
line = Int32(0)
end
i = max(ip.stmt+1, 1) # ip.stmt is 0-indexed
if i > length(codeinfo.codelocs) || codeinfo.codelocs[i] == 0
Expand Down

0 comments on commit a1e9fd3

Please sign in to comment.