diff options
author | DeepBlueV7.X <nicolas.werner@hotmail.de> | 2020-02-05 15:35:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-05 15:35:04 +0100 |
commit | 275d4dfed912affccc0af01a20b2c6bc8c59256e (patch) | |
tree | aa083d7e2e6f6a76b881953bc26949ebaa683043 /src/Cache.cpp | |
parent | Make closing the reply popup actually clear the reply message (diff) | |
download | nheko-275d4dfed912affccc0af01a20b2c6bc8c59256e.tar.xz |
Fix integer overflow of cachesize on windows
Diffstat (limited to '')
-rw-r--r-- | src/Cache.cpp | 2 |
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. |