Skip to content

Commit

Permalink
Fix canonicalize! for empty
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Mar 24, 2018
1 parent b188b48 commit 29cecc1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/operations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ function dd_matrixcanonicalize(matrix::Ptr{Cdd_MatrixData{GMPRational}})
(found, matptr[], impl_linset[], redset[], newpos[])
end
function canonicalize!(matrix::CDDMatrix)
iszero(length(matrix)) && return # See https://github.com/JuliaPolyhedra/CDDLib.jl/issues/24
(found, matrix.matrix, impl_linset, redset, newpos) = dd_matrixcanonicalize(matrix.matrix)
if !Bool(found)
error("Canonicalization not found")
Expand Down

0 comments on commit 29cecc1

Please sign in to comment.