Skip to content

Commit

Permalink
fix CircularDeque
Browse files Browse the repository at this point in the history
  • Loading branch information
KronosTheLate committed Jan 25, 2024
1 parent d119d1e commit e4d7d54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/circ_deque.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ end
Create a double-ended queue of maximum capacity `n`, implemented as a circular buffer. The element type is `T`.
"""
CircularDeque{T}(n::Int) where {T} = CircularDeque(Vector{T}(undef, n), n, 0, 1, n)
CircularDeque{T}(n::Integer) where {T} = CircularDeque(Vector{T}(undef, Int(n)), Int(n), 0, 1, Int(n))

Check warning on line 15 in src/circ_deque.jl

View check run for this annotation

Codecov / codecov/patch

src/circ_deque.jl#L15

Added line #L15 was not covered by tests

Base.length(D::CircularDeque) = D.n
Base.eltype(::Type{CircularDeque{T}}) where {T} = T
Expand Down

0 comments on commit e4d7d54

Please sign in to comment.