Skip to content

Commit c78e3b5

Browse files
committed
_buffer_frame for Cartesian index
1 parent 45f79d4 commit c78e3b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/CircularArrayBuffers.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ end
9696
end
9797
end
9898

99+
_buffer_frame(cb::CircularArrayBuffer, I::CartesianIndex) = map(i -> _buffer_frame(cb, i), Tuple(I)...)
99100
_buffer_frame(cb::CircularArrayBuffer, I::AbstractArray{<:Integer}) = map(i -> _buffer_frame(cb, i), I)
100101
_buffer_frame(cb::CircularArrayBuffer, ::Colon) = _buffer_frame(cb, axes(cb)[end])
101102

0 commit comments

Comments
 (0)