summaryrefslogtreecommitdiffstats
path: root/streamingvisitors
diff options
context:
space:
mode:
authorArne Juul <arnej@yahoo-inc.com>2016-06-27 13:16:05 +0200
committerArne Juul <arnej@yahoo-inc.com>2016-06-27 13:16:05 +0200
commitae1618a9d214f6b61e7f4c3459f5cf1f6e3cfb3b (patch)
tree987277f40fd604dfc02ca90c49b955d160fd5280 /streamingvisitors
parent8603a2b7e9529eeafbd128b106e9d4936f95b30d (diff)
use cmath
* avoid using #include <math.h> * add std:: namespace prefix when calling <cmath> functions
Diffstat (limited to 'streamingvisitors')
-rw-r--r--streamingvisitors/src/vespa/searchvisitor/rankprocessor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/streamingvisitors/src/vespa/searchvisitor/rankprocessor.cpp b/streamingvisitors/src/vespa/searchvisitor/rankprocessor.cpp
index 090479f9b90..d1a39add85d 100644
--- a/streamingvisitors/src/vespa/searchvisitor/rankprocessor.cpp
+++ b/streamingvisitors/src/vespa/searchvisitor/rankprocessor.cpp
@@ -8,6 +8,7 @@ LOG_SETUP(".searchvisitor.rankprocessor");
#include <vespa/vsm/vsm/fieldsearchspec.h>
#include "querytermdata.h"
#include "rankprocessor.h"
+#include <cmath>
using search::FeatureSet;
using search::HitList;
@@ -167,7 +168,7 @@ RankProcessor::runRankProgram(uint32_t docId)
if (_rankScoreHandle != IllegalHandle) {
MatchData &matchData = _rankProgram->match_data();
_score = *(matchData.resolveFeature(_rankScoreHandle));
- if (isnan(_score) || isinf(_score)) {
+ if (std::isnan(_score) || std::isinf(_score)) {
_score = -HUGE_VAL;
}
}