From c5a6ee1feafbd765e7cea4ef108bbb3a173e3ddf Mon Sep 17 00:00:00 2001 From: schillic Date: Thu, 5 Apr 2018 09:08:32 +0200 Subject: [PATCH] correct creation of empty HPolygon/HPolytope --- src/HPolygon.jl | 2 +- src/HPolytope.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/HPolygon.jl b/src/HPolygon.jl index b7233b7b43..e4d694746e 100644 --- a/src/HPolygon.jl +++ b/src/HPolygon.jl @@ -28,7 +28,7 @@ struct HPolygon{N<:Real} <: AbstractHPolygon{N} constraints::Vector{LinearConstraint{N}} end # constructor for an HPolygon with no constraints -HPolygon{N}() where {N<:Real} = HPolygon{N}(Vector{N}(0)) +HPolygon{N}() where {N<:Real} = HPolygon{N}(Vector{LinearConstraint{N}}(0)) # constructor for an HPolygon with no constraints of type Float64 HPolygon() = HPolygon{Float64}() diff --git a/src/HPolytope.jl b/src/HPolytope.jl index 79f547be0d..1aeadad5a6 100644 --- a/src/HPolytope.jl +++ b/src/HPolytope.jl @@ -25,7 +25,7 @@ struct HPolytope{N<:Real} <: AbstractPolytope{N} constraints::Vector{LinearConstraint{N}} end # constructor for a HPolytope with no constraints -HPolytope{N}() where {N<:Real} = HPolytope{N}(Vector{N}(0)) +HPolytope{N}() where {N<:Real} = HPolytope{N}(Vector{LinearConstraint{N}}(0)) # constructor for a HPolytope with no constraints of type Float64 HPolytope() = HPolytope{Float64}()