From bd5d4e5d36392293eeb966cfdf4b68cca2099a9f Mon Sep 17 00:00:00 2001 From: Tim Dwyer Date: Thu, 26 Jan 2006 05:32:20 +0000 Subject: Fixed bug to do with comparison of invalid constraints in pairing heaps. Also numerical problem with constraint generation fixed. (bzr r30) --- src/removeoverlap/constraint.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/removeoverlap/constraint.cpp') 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 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; -- cgit v1.2.3