diff options
Diffstat (limited to 'src/removeoverlap/constraint.cpp')
| -rw-r--r-- | src/removeoverlap/constraint.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/removeoverlap/constraint.cpp b/src/removeoverlap/constraint.cpp index 78c5f03ad..23da81927 100644 --- a/src/removeoverlap/constraint.cpp +++ b/src/removeoverlap/constraint.cpp @@ -10,9 +10,12 @@ */ #include "constraint.h" - +#include <cassert> Constraint::Constraint(Variable *left, Variable *right, double gap) { + if(gap>1e40) { + int i=0; // this would most probably indicate a divide by zero somewhere + } this->left=left; left->out.push_back(this); this->right=right; |
