diff options
author | Arne Juul <arnej@yahoo-inc.com> | 2016-06-27 13:14:04 +0200 |
---|---|---|
committer | Arne Juul <arnej@yahoo-inc.com> | 2016-06-27 13:14:04 +0200 |
commit | 8543e41af8f7f85e9b5d4282925c555ee37e2a42 (patch) | |
tree | e426a726d3946623b98f86d08ea6e267dc727601 | |
parent | b3c7881d29b2ce40c4211dd8d29d2509f7689ca9 (diff) |
use cstdlib
* use #include <cstdlib> for std::abs() with integral types
-rw-r--r-- | config/src/vespa/config/frt/frtconnectionpool.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/src/vespa/config/frt/frtconnectionpool.cpp b/config/src/vespa/config/frt/frtconnectionpool.cpp index 09630a6b999..1772598f92b 100644 --- a/config/src/vespa/config/frt/frtconnectionpool.cpp +++ b/config/src/vespa/config/frt/frtconnectionpool.cpp @@ -91,10 +91,10 @@ FRTConnectionPool::getNextHashBased() FRTConnection* nextFRTConnection = NULL; if (!readySources.empty()) { - int sel = abs(hashCode(_hostname) % (int)readySources.size()); + int sel = std::abs(hashCode(_hostname) % (int)readySources.size()); nextFRTConnection = readySources[sel]; } else { - int sel = abs(hashCode(_hostname) % (int)suspendedSources.size()); + int sel = std::abs(hashCode(_hostname) % (int)suspendedSources.size()); nextFRTConnection = suspendedSources[sel]; } return nextFRTConnection; |