Skip to content

Commit 4e42013

Browse files
committed
Merge branch 'sd/simple-mesh' of https://github.com/JuliaGeometry/GeometryBasics.jl into sd/simple-mesh
2 parents b0be05a + 1238b05 commit 4e42013

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)