Skip to content

Commit 2357271

Browse files
authored
Merge pull request #34 from JuliaImages/teh/0.7
Fix reparamterization of CartesianRange on 0.7
2 parents ea6ee0a + 1f4e987 commit 2357271

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

REQUIRE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ Colors 0.7.0
1010
ColorVectorSpace 0.2
1111
FixedPointNumbers 0.3
1212
ShowItLikeYouBuildIt
13-
Compat 0.19
13+
Compat 0.29

src/autorange.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ immutable CornerIterator{I<:CartesianIndex}
2222
start::I
2323
stop::I
2424
end
25-
CornerIterator{I<:CartesianIndex}(R::CartesianRange{I}) = CornerIterator{I}(first(R), last(R))
25+
CornerIterator(R::CartesianRange) = CornerIterator(first(R), last(R))
2626

2727
eltype{I}(::Type{CornerIterator{I}}) = I
2828
iteratorsize{I}(::Type{CornerIterator{I}}) = Base.HasShape()

src/resizing.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,6 @@ end
259259
@inline map3(f, a, b, c) = (f(a[1], b[1], c[1]), map3(f, tail(a), tail(b), tail(c))...)
260260
@inline map3(f, ::Tuple{}, ::Tuple{}, ::Tuple{}) = ()
261261

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

0 commit comments

Comments
 (0)