From d056df033a1e88554f7cc39dd709a87b17cb49df Mon Sep 17 00:00:00 2001 From: Ben Woosley Date: Wed, 12 Feb 2020 23:01:45 -0500 Subject: Replace std::to_string with locale-independent alternative --- src/test/key_tests.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/test/key_tests.cpp') diff --git a/src/test/key_tests.cpp b/src/test/key_tests.cpp index 85dc961be..034b7938f 100644 --- a/src/test/key_tests.cpp +++ b/src/test/key_tests.cpp @@ -8,6 +8,7 @@ #include #include #include +#include #include #include @@ -176,7 +177,7 @@ BOOST_AUTO_TEST_CASE(key_signature_tests) bool found_small = false; for (int i = 0; i < 256; ++i) { sig.clear(); - std::string msg = "A message to be signed" + std::to_string(i); + std::string msg = "A message to be signed" + ToString(i); msg_hash = Hash(msg.begin(), msg.end()); BOOST_CHECK(key.Sign(msg_hash, sig)); found = sig[3] == 0x20; -- cgit v1.2.3