Skip to content

Commit 984a0db

Browse files
committed
Fix issue #219
1 parent 6e4430a commit 984a0db

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ArrayInterface"
22
uuid = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
3-
version = "3.1.34"
3+
version = "3.1.35"
44

55
[deps]
66
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"

src/ranges.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ end
399399

400400
const OptionallyStaticRange = Union{<:OptionallyStaticUnitRange,<:OptionallyStaticStepRange}
401401

402-
Base.eachindex(r::OptionallyStaticRange) = r
402+
Base.eachindex(r::OptionallyStaticRange) = One():static_length(r)
403403
@inline function Base.iterate(r::OptionallyStaticRange)
404404
isempty(r) && return nothing
405405
fi = Int(first(r));

0 commit comments

Comments
 (0)