From 275d4dfed912affccc0af01a20b2c6bc8c59256e Mon Sep 17 00:00:00 2001 From: "DeepBlueV7.X" Date: Wed, 5 Feb 2020 15:35:04 +0100 Subject: [PATCH] Fix integer overflow of cachesize on windows --- src/Cache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cache.cpp b/src/Cache.cpp index 2e02a488..e73f7754 100644 --- a/src/Cache.cpp +++ b/src/Cache.cpp @@ -45,7 +45,7 @@ static lmdb::val CACHE_FORMAT_VERSION_KEY("cache_format_version"); constexpr size_t MAX_RESTORED_MESSAGES = 30; -constexpr auto DB_SIZE = 32UL * 1024UL * 1024UL * 1024UL; // 512 GB +constexpr auto DB_SIZE = 32UL * 1024UL * 1024UL * 1024ULL; // 32 GB constexpr auto MAX_DBS = 8092UL; //! Cache databases and their format.