Browse Source

LLu is standard, but not portable. use ULL

pull/1/head
sinetek 8 years ago
parent
commit
775b7b8d70
  1. 2
      src/serialize.h

2
src/serialize.h

@ -245,7 +245,7 @@ uint64_t ReadCompactSize(Stream& is) @@ -245,7 +245,7 @@ uint64_t ReadCompactSize(Stream& is)
uint64_t xSize;
READDATA(is, xSize);
nSizeRet = xSize;
if (nSizeRet < 0x100000000LLu)
if (nSizeRet < 0x100000000ULL)
throw std::ios_base::failure("non-canonical ReadCompactSize()");
}
if (nSizeRet > (uint64_t)MAX_SIZE)

Loading…
Cancel
Save