Skip to content

Commit 3b87093

Browse files
authored
Merge pull request #320 from JuliaReach/schillic/319
#319 - Wrong creation of empty polygon/polytope
2 parents 24c5ad2 + c5a6ee1 commit 3b87093

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/HPolygon.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ struct HPolygon{N<:Real} <: AbstractHPolygon{N}
2828
constraints::Vector{LinearConstraint{N}}
2929
end
3030
# constructor for an HPolygon with no constraints
31-
HPolygon{N}() where {N<:Real} = HPolygon{N}(Vector{N}(0))
31+
HPolygon{N}() where {N<:Real} = HPolygon{N}(Vector{LinearConstraint{N}}(0))
3232

3333
# constructor for an HPolygon with no constraints of type Float64
3434
HPolygon() = HPolygon{Float64}()

src/HPolytope.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ struct HPolytope{N<:Real} <: AbstractPolytope{N}
2525
constraints::Vector{LinearConstraint{N}}
2626
end
2727
# constructor for a HPolytope with no constraints
28-
HPolytope{N}() where {N<:Real} = HPolytope{N}(Vector{N}(0))
28+
HPolytope{N}() where {N<:Real} = HPolytope{N}(Vector{LinearConstraint{N}}(0))
2929

3030
# constructor for a HPolytope with no constraints of type Float64
3131
HPolytope() = HPolytope{Float64}()

0 commit comments

Comments
 (0)