mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-22 20:58:09 +02:00
refactor: Hand-replace some uint256S -> uint256
chainparams.cpp - workaround for MSVC bug triggering C7595 - Calling consteval constructors in initializer lists fails, but works on GCC (13.2.0) & Clang (17.0.6).
This commit is contained in:
@@ -23,7 +23,7 @@ FUZZ_TARGET(block_header)
|
||||
}
|
||||
{
|
||||
const uint256 hash = block_header->GetHash();
|
||||
static const uint256 u256_max(uint256S("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"));
|
||||
constexpr uint256 u256_max{"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"};
|
||||
assert(hash != u256_max);
|
||||
assert(block_header->GetBlockTime() == block_header->nTime);
|
||||
assert(block_header->IsNull() == (block_header->nBits == 0));
|
||||
|
||||
Reference in New Issue
Block a user