Skip to content

Commit

Permalink
fix deprecation for iteration protocol (#28391)
Browse files Browse the repository at this point in the history
broken by PR #28365 (7bd0ce2765)
  • Loading branch information
vtjnash authored and Keno committed Aug 1, 2018
1 parent 883a8a2 commit c05fd20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/essentials.jl
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ function has_non_default_iterate(T)
world = ccall(:jl_get_world_counter, UInt, ())
mt = Base._methods(iterate, Tuple{T}, -1, world)
# Check if this is the above method
if (mt[1][3].file == @__FILE_SYMBOL__) && (mt[1][3].line == old_iterate_line_prev + 1)
if (mt[1][3].file == @__FILE_SYMBOL__) && (mt[1][3].line == old_iterate_line_prev + 2)
return false
end
return true
Expand Down

0 comments on commit c05fd20

Please sign in to comment.