Skip to content

Commit

Permalink
Add missing specialization
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremiahpslewis committed Mar 27, 2024
1 parent 612eaa7 commit a75a045
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CircularArrayBuffers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ end
Here `i` is assumed to be the last dimension of `cb`. Each `frame` means a slice of the last dimension. Since we use *circular frames* (the `data` buffer) underlying, this function transforms the logical `i`-th frame to the real frame of the internal buffer.
"""
@inline function _buffer_frame(cb::CircularArrayBuffer, i::Int)
@inline function _buffer_frame(cb::CircularArrayBuffer{T,N}, i::Int) where {T,N}
n = capacity(cb)
idx = cb.first + i - 1
return wrap_index(idx, n)
Expand Down

0 comments on commit a75a045

Please sign in to comment.