Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ Colors 0.7.0
ColorVectorSpace 0.2
FixedPointNumbers 0.3
ShowItLikeYouBuildIt
Compat 0.19
Compat 0.29
2 changes: 1 addition & 1 deletion src/autorange.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ immutable CornerIterator{I<:CartesianIndex}
start::I
stop::I
end
CornerIterator{I<:CartesianIndex}(R::CartesianRange{I}) = CornerIterator{I}(first(R), last(R))
CornerIterator(R::CartesianRange) = CornerIterator(first(R), last(R))

eltype{I}(::Type{CornerIterator{I}}) = I
iteratorsize{I}(::Type{CornerIterator{I}}) = Base.HasShape()
Expand Down
2 changes: 1 addition & 1 deletion src/resizing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,6 @@ end
@inline map3(f, a, b, c) = (f(a[1], b[1], c[1]), map3(f, tail(a), tail(b), tail(c))...)
@inline map3(f, ::Tuple{}, ::Tuple{}, ::Tuple{}) = ()

function clampR{N}(I::NTuple{N}, R::CartesianRange{CartesianIndex{N}})
@compat function clampR{N}(I::NTuple{N}, R::CartesianRange{N})
map3(clamp, I, first(R).I, last(R).I)
end