Skip to content

Commit 105a9f5

Browse files
committed
as_vector extended from Vector to AbstractVector
1 parent 3c70caf commit 105a9f5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/constraints.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ end
256256

257257
as_vector(::Nothing) = nothing
258258
(as_vector(x::T)::Vector{T}) where {T<:ctNumber} = [x]
259-
as_vector(x::Vector{T}) where {T<:ctNumber} = x
259+
as_vector(x::AbstractVector{T}) where {T<:ctNumber} = x
260260

261261
as_range(::Nothing) = nothing
262262
as_range(r::T) where {T<:Int} = r:r

0 commit comments

Comments
 (0)