Fixing warning detected by additional compiler flags

This commit is contained in:
DennisOSRM
2012-09-19 13:48:04 +02:00
parent c14ceff9b3
commit ac588911ba
17 changed files with 34 additions and 33 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ bool ExtractorCallbacks::wayFunction(_Way &w) {
w.nameID = strit->second;
}
if(-1 == w.speed){
if(fabs(-1. - w.speed) < FLT_EPSILON){
WARN("found way with bogus speed, id: " << w.id);
return true;
}
+2
View File
@@ -24,6 +24,8 @@ or see http://www.gnu.org/licenses/agpl.txt.
#include <string>
#include <vector>
#include <cfloat>
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/regex.hpp>
#include <boost/regex.hpp>