Skip to content

Commit bd0c993

Browse files
committed
fix range on v1.0
1 parent 80049e5 commit bd0c993

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ end
8888
# However these ensure that the result is an AbstractRange even if a specific
8989
# broadcasting behavior is not defined for a custom type
9090
_subtractoffset(r::AbstractUnitRange, of) = UnitRange(first(r) - of, last(r) - of)
91-
_subtractoffset(r::AbstractRange, of) = range(first(r) - of, last(r) - of, step = step(r))
91+
_subtractoffset(r::AbstractRange, of) = range(first(r) - of, stop = last(r) - of, step = step(r))
9292

9393
if VERSION <= v"1.7.0-DEV.1039"
9494
_contiguousindexingtype(r::AbstractUnitRange{<:Integer}) = UnitRange{Int}(r)

0 commit comments

Comments
 (0)