diff --git a/src/HPolyhedron.jl b/src/HPolyhedron.jl index 96fcf8bfef..45c75b4135 100644 --- a/src/HPolyhedron.jl +++ b/src/HPolyhedron.jl @@ -152,7 +152,7 @@ function σ(d::AbstractVector{N}, P::HPoly{N}) where {N<:Real} end @inline function _to_minus_vector(d::SparseVector{N}) where {N} - c = zeros(length(d)) + c = zeros(N, length(d)) for (ni, i) in enumerate(d.nzind) @inbounds c[i] = -d.nzval[ni] end