aboutsummaryrefslogtreecommitdiff
path: root/src/test/timedata_tests.cpp
diff options
context:
space:
mode:
authorBen Woosley <ben.woosley@gmail.com>2020-02-12 23:01:45 -0500
committerBen Woosley <ben.woosley@gmail.com>2020-03-14 12:23:01 -0700
commitd056df033a1e88554f7cc39dd709a87b17cb49df (patch)
tree263b622b86b99015913624e20b40fc317777c3c7 /src/test/timedata_tests.cpp
parent58c72880ff70807cf622cdebf1d6273f4041bd2e (diff)
Replace std::to_string with locale-independent alternative
Diffstat (limited to 'src/test/timedata_tests.cpp')
-rw-r--r--src/test/timedata_tests.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/timedata_tests.cpp b/src/test/timedata_tests.cpp
index 19bd0d142f..29b43e9bec 100644
--- a/src/test/timedata_tests.cpp
+++ b/src/test/timedata_tests.cpp
@@ -5,6 +5,7 @@
#include <netaddress.h>
#include <noui.h>
+#include <util/string.h>
#include <test/util/logging.h>
#include <test/util/setup_common.h>
#include <timedata.h>
@@ -46,7 +47,7 @@ static void MultiAddTimeData(int n, int64_t offset)
static int cnt = 0;
for (int i = 0; i < n; ++i) {
CNetAddr addr;
- addr.SetInternal(std::to_string(++cnt));
+ addr.SetInternal(ToString(++cnt));
AddTimeData(addr, offset);
}
}