Fixing warning detected by additional compiler flags
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user