diff options
author | Ben Woosley <ben.woosley@gmail.com> | 2020-02-12 23:01:45 -0500 |
---|---|---|
committer | Ben Woosley <ben.woosley@gmail.com> | 2020-03-14 12:23:01 -0700 |
commit | d056df033a1e88554f7cc39dd709a87b17cb49df (patch) | |
tree | 263b622b86b99015913624e20b40fc317777c3c7 /src/test/key_tests.cpp | |
parent | 58c72880ff70807cf622cdebf1d6273f4041bd2e (diff) | |
download | bitcoin-d056df033a1e88554f7cc39dd709a87b17cb49df.tar.xz |
Replace std::to_string with locale-independent alternative
Diffstat (limited to 'src/test/key_tests.cpp')
-rw-r--r-- | src/test/key_tests.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/key_tests.cpp b/src/test/key_tests.cpp index 85dc961bea..034b7938f9 100644 --- a/src/test/key_tests.cpp +++ b/src/test/key_tests.cpp @@ -8,6 +8,7 @@ #include <uint256.h> #include <util/system.h> #include <util/strencodings.h> +#include <util/string.h> #include <test/util/setup_common.h> #include <string> @@ -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; |