Skip to content

Commit 1238b05

Browse files
committed
add zero for value
1 parent cba8ec8 commit 1238b05

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/fixed_arrays.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ function unit(::Type{T}, i::Integer) where {T <: StaticVector}
158158
end
159159

160160
Base.zero(::Type{V}) where {V <:StaticVector} = V(0)
161+
Base.zero(::V) where {V <:StaticVector} = zero(V)
161162

162163
function Base.:(==)(a::StaticVector{N}, b::StaticVector{N}) where N
163164
for i in 1:N

0 commit comments

Comments
 (0)