Skip to content

Commit

Permalink
add inbounds to vcat of ranges. helps JuliaLang#4784
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Nov 19, 2013
1 parent c53772d commit 9d1e5e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions base/range.jl
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ function vcat{T}(r::Ranges{T})
a = Array(T,n)
i = 1
for x in r
a[i] = x
@inbounds a[i] = x
i += 1
end
return a
Expand All @@ -357,7 +357,7 @@ function vcat{T}(rs::Ranges{T}...)
i = 1
for r in rs
for x in r
a[i] = x
@inbounds a[i] = x
i += 1
end
end
Expand Down
2 changes: 1 addition & 1 deletion base/sysimg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ include("c.jl")

# core operations & types
include("promotion.jl")
include("range.jl")
include("tuple.jl")
include("range.jl")
include("cell.jl")
include("expr.jl")
include("error.jl")
Expand Down

0 comments on commit 9d1e5e8

Please sign in to comment.