Skip to content

Commit

Permalink
fix #7760, dispatch loop on missing intersect for Ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Jul 29, 2014
1 parent e5ed33b commit a1bd641
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions base/range.jl
Original file line number Diff line number Diff line change
Expand Up @@ -397,9 +397,9 @@ function intersect{T1<:Integer, T2<:Integer}(r::StepRange{T1}, s::StepRange{T2})
m:a:n
end

function intersect(r::Range, s::Range...)
i = r
for t in s
function intersect(r1::Range, r2::Range, r3::Range, r::Range...)
i = intersect(intersect(r1, r2), r3)
for t in r
i = intersect(i, t)
end
i
Expand Down

0 comments on commit a1bd641

Please sign in to comment.