mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
Replace std::to_string with locale-independent alternative
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
|
||||
#include <chain.h>
|
||||
#include <rpc/blockchain.h>
|
||||
#include <util/string.h>
|
||||
#include <test/util/setup_common.h>
|
||||
|
||||
/* Equality between doubles is imprecise. Comparison should be done
|
||||
@@ -30,8 +31,8 @@ static CBlockIndex* CreateBlockIndexWithNbits(uint32_t nbits)
|
||||
static void RejectDifficultyMismatch(double difficulty, double expected_difficulty) {
|
||||
BOOST_CHECK_MESSAGE(
|
||||
DoubleEquals(difficulty, expected_difficulty, 0.00001),
|
||||
"Difficulty was " + std::to_string(difficulty)
|
||||
+ " but was expected to be " + std::to_string(expected_difficulty));
|
||||
"Difficulty was " + ToString(difficulty)
|
||||
+ " but was expected to be " + ToString(expected_difficulty));
|
||||
}
|
||||
|
||||
/* Given a BlockIndex with the provided nbits,
|
||||
|
||||
Reference in New Issue
Block a user