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
+1 -1
View File
@@ -56,7 +56,7 @@ void ExtractorCallbacks::wayFunction(ExtractionWay &parsed_way) {
parsed_way.speed = parsed_way.duration/(parsed_way.path.size()-1);
}
if(FLT_EPSILON >= fabs(-1. - parsed_way.speed)){
if(std::numeric_limits<double>::epsilon() >= fabs(-1. - parsed_way.speed)){
SimpleLogger().Write(logDEBUG) <<
"found way with bogus speed, id: " << parsed_way.id;
return;