Skip to content

Commit 7f5965f

Browse files
use function
1 parent c473aef commit 7f5965f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CircularArrayBuffers.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ function Base.empty!(cb::CircularArrayBuffer)
124124
end
125125

126126
function Base.push!(cb::CircularArrayBuffer{T,N}, data) where {T,N}
127-
if cb.nframes == capacity(cb)
127+
if isfull(cb)
128128
cb.first = (cb.first == capacity(cb) ? 1 : cb.first + 1)
129129
else
130130
cb.nframes += 1

0 commit comments

Comments
 (0)