mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-12 04:42:36 -03:00
LLu is standard, but not portable. use ULL
This commit is contained in:
parent
a38eaea082
commit
775b7b8d70
1 changed files with 1 additions and 1 deletions
|
@ -245,7 +245,7 @@ uint64_t ReadCompactSize(Stream& is)
|
||||||
uint64_t xSize;
|
uint64_t xSize;
|
||||||
READDATA(is, xSize);
|
READDATA(is, xSize);
|
||||||
nSizeRet = xSize;
|
nSizeRet = xSize;
|
||||||
if (nSizeRet < 0x100000000LLu)
|
if (nSizeRet < 0x100000000ULL)
|
||||||
throw std::ios_base::failure("non-canonical ReadCompactSize()");
|
throw std::ios_base::failure("non-canonical ReadCompactSize()");
|
||||||
}
|
}
|
||||||
if (nSizeRet > (uint64_t)MAX_SIZE)
|
if (nSizeRet > (uint64_t)MAX_SIZE)
|
||||||
|
|
Loading…
Reference in a new issue