mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01:00
Replace std::to_string with locale-independent alternative
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user