From 26729ca48289eb7aae8548ac8b4e8eab94d741f7 Mon Sep 17 00:00:00 2001 From: DennisOSRM Date: Sun, 3 Feb 2013 14:57:40 +0100 Subject: [PATCH] Fixing useless comparison --- Extractor/ExtractorCallbacks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Extractor/ExtractorCallbacks.cpp b/Extractor/ExtractorCallbacks.cpp index 956a9fee4..1702ec0d5 100644 --- a/Extractor/ExtractorCallbacks.cpp +++ b/Extractor/ExtractorCallbacks.cpp @@ -67,7 +67,7 @@ bool ExtractorCallbacks::restrictionFunction(_RawRestrictionContainer &r) { bool ExtractorCallbacks::wayFunction(_Way &w) { /*** Store name of way and split it into edge segments ***/ - if ( 0 < w.speed > 0 || 0 < w.duration ) { //Only true if the way is specified by the speed profile + if ( (0 < w.speed) || (0 < w.duration) ) { //Only true if the way is specified by the speed profile //Get the unique identifier for the street name const StringMap::const_iterator strit = stringMap->find(w.name); if(strit == stringMap->end()) {