removing all FLT_EPSILONs

This commit is contained in:
Dennis Luxen
2013-10-02 13:05:54 +02:00
parent 770a07cc28
commit bf8505a285
5 changed files with 7 additions and 7 deletions
+2 -3
View File
@@ -38,7 +38,6 @@ or see http://www.gnu.org/licenses/agpl.txt.
#include <boost/make_shared.hpp>
#include <boost/shared_ptr.hpp>
#include <cfloat>
#include <ctime>
#include <algorithm>
@@ -732,7 +731,7 @@ private:
if ( priority > targetPriority )
return false;
//tie breaking
if ( fabs(priority - targetPriority) < FLT_EPSILON && bias(node, target) ) {
if ( fabs(priority - targetPriority) < std::numeric_limits<double>::epsilon() && bias(node, target) ) {
return false;
}
neighbours.push_back( target );
@@ -754,7 +753,7 @@ private:
if ( priority > targetPriority)
return false;
//tie breaking
if ( fabs(priority - targetPriority) < FLT_EPSILON && bias(node, target) ) {
if ( fabs(priority - targetPriority) < std::numeric_limits<double>::epsilon() && bias(node, target) ) {
return false;
}
}