We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 531e825 commit f8e50b0Copy full SHA for f8e50b0
src/ranges.jl
@@ -229,8 +229,8 @@ end
229
@propagate_inbounds function Base.getindex(r::OptionallyStaticUnitRange, s::AbstractUnitRange{<:Integer})
230
@boundscheck checkbounds(r, s)
231
f = static_first(r)
232
- f = f - one(f)
233
- return (f + static_first(s)):(f + static_last(s))
+ fnew = f - one(f)
+ return (fnew + static_first(s)):(fnew + static_last(s))
234
end
235
236
@propagate_inbounds function Base.getindex(r::OptionallyStaticUnitRange, i::Integer)
0 commit comments