From 775b7b8d70da34029d3f29cbd67e82fbfcd30481 Mon Sep 17 00:00:00 2001 From: sinetek Date: Sun, 28 Sep 2014 18:22:44 -0400 Subject: [PATCH] LLu is standard, but not portable. use ULL --- src/serialize.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/serialize.h b/src/serialize.h index 7f8f933284..68501facf2 100644 --- a/src/serialize.h +++ b/src/serialize.h @@ -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)