summaryrefslogtreecommitdiffstats
path: root/juniper
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-06-19 14:02:56 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2017-06-19 14:33:00 +0200
commiteb9594bb25aef4ac9f90d6a83c6dd5003a7f4750 (patch)
tree53aaed9465f4a966b91f69df991a8c696e739770 /juniper
parentfb0d8859042570a15e0477f1ba6adf638b01db0f (diff)
Use locale insensitive strtod and strtof.
Diffstat (limited to 'juniper')
-rw-r--r--juniper/src/vespa/juniper/config.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/juniper/src/vespa/juniper/config.cpp b/juniper/src/vespa/juniper/config.cpp
index 7edbcb073dd..bd0dfe6c9b1 100644
--- a/juniper/src/vespa/juniper/config.cpp
+++ b/juniper/src/vespa/juniper/config.cpp
@@ -1,5 +1,4 @@
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-/* $Id$ */
#include "config.h"
#include "IJuniperProperties.h"
@@ -7,6 +6,7 @@
#include "juniperdebug.h"
#define _NEED_SUMMARY_CONFIG_IMPL
#include "SummaryConfig.h"
+#include <vespa/vespalib/locale/c.h>
namespace juniper
{
@@ -38,9 +38,8 @@ Config::Config(const char* config_name, Juniper & juniper) :
size_t max_match_candidates = atoi(GetProp("matcher.max_match_candidates", "1000"));
const char* seps = GetProp("dynsum.separators", separators.c_str());
const unsigned char* cons =
- reinterpret_cast<const unsigned char*>(GetProp("dynsum.connectors",
- separators.c_str()));
- double proximity_factor = strtod(GetProp("proximity.factor", "0.25"), NULL);
+ reinterpret_cast<const unsigned char*>(GetProp("dynsum.connectors", separators.c_str()));
+ double proximity_factor = vespalib::locale::c::strtod(GetProp("proximity.factor", "0.25"), NULL);
// Silently convert to something sensible
if (proximity_factor > 1E8 || proximity_factor < 0) proximity_factor = 0.25;