diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2017-06-19 14:02:56 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2017-06-19 14:33:00 +0200 |
commit | eb9594bb25aef4ac9f90d6a83c6dd5003a7f4750 (patch) | |
tree | 53aaed9465f4a966b91f69df991a8c696e739770 /vespalib/src/tests/executor/stress_test.cpp | |
parent | fb0d8859042570a15e0477f1ba6adf638b01db0f (diff) |
Use locale insensitive strtod and strtof.
Diffstat (limited to 'vespalib/src/tests/executor/stress_test.cpp')
-rw-r--r-- | vespalib/src/tests/executor/stress_test.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vespalib/src/tests/executor/stress_test.cpp b/vespalib/src/tests/executor/stress_test.cpp index d4edf2483e8..aa5d9d53955 100644 --- a/vespalib/src/tests/executor/stress_test.cpp +++ b/vespalib/src/tests/executor/stress_test.cpp @@ -4,6 +4,7 @@ #include <vespa/vespalib/util/executor.h> #include <vespa/vespalib/util/sync.h> #include <vespa/vespalib/util/threadstackexecutor.h> +#include <vespa/vespalib/locale/c.h> #include <cmath> using namespace vespalib; @@ -96,7 +97,7 @@ Test::Main() TEST_DONE(); } uint32_t threads = atoi(_argv[1]); - double ms_per_task = strtod(_argv[2], 0); + double ms_per_task = locale::c::strtod(_argv[2], 0); uint32_t tasks = atoi(_argv[3]); fprintf(stderr, "threads : %u\n", threads); fprintf(stderr, "ms per task: %g\n", ms_per_task); |