summary refs log tree commit diff
path: root/src/Cache.cpp
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2020-02-05 15:35:04 +0100
committerGitHub <noreply@github.com>2020-02-05 15:35:04 +0100
commit275d4dfed912affccc0af01a20b2c6bc8c59256e (patch)
treeaa083d7e2e6f6a76b881953bc26949ebaa683043 /src/Cache.cpp
parentMake closing the reply popup actually clear the reply message (diff)
downloadnheko-275d4dfed912affccc0af01a20b2c6bc8c59256e.tar.xz
Fix integer overflow of cachesize on windows
Diffstat (limited to '')
-rw-r--r--src/Cache.cpp2
1 files changed, 1 insertions, 1 deletions
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.