@@ -616,15 +616,15 @@ module IteratorsMD
616616 piter = iter. parent. parent
617617 ax1, oiter = split (piter, Val (1 ))
618618 vindʷ = only (iter. indices)
619- @inline function _splitlinear (piter :: CartesianIndices , oiter :: CartesianIndices , i:: Int )
619+ @inline function _splitlinear (i:: Int )
620620 ci = Base. _to_subscript_indices (piter, i)
621621 ci[1 ], Base. _to_linear_index (oiter, tail (ci)... )
622622 end
623- fl, vl = _splitlinear (piter, oiter, first (vindʷ))
624- fr, vr = _splitlinear (piter, oiter, last (vindʷ))
625- @inline function _view (oiter:: CartesianIndices , ind:: AbstractUnitRange )
623+ fl, vl = _splitlinear (first (vindʷ))
624+ fr, vr = _splitlinear (last (vindʷ))
625+ @inline function _view (oiter:: CartesianIndices , ind:: UnitRange )
626626 # we dont have #40344 for 1.6 and 1.7, force this return a CartesianIndices{1}
627- ndims (oiter) == 1 && return @inbounds CartesianIndices ((oiter. indices[1 ][ind],))
627+ ndims (oiter) == 1 && return @inbounds CartesianIndices ((oiter. indices[1 ][ind],))
628628 # there's no need to make outer range fast-indexable
629629 oiter′ = ReshapedArray (oiter, (length (oiter),), ())
630630 @inbounds view (oiter′, ind)
0 commit comments