Fix integer overflow of cachesize on windows

This commit is contained in:
DeepBlueV7.X 2020-02-05 15:35:04 +01:00 committed by GitHub
parent 096db389d1
commit 275d4dfed9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,7 +45,7 @@ static lmdb::val CACHE_FORMAT_VERSION_KEY("cache_format_version");
constexpr size_t MAX_RESTORED_MESSAGES = 30; 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; constexpr auto MAX_DBS = 8092UL;
//! Cache databases and their format. //! Cache databases and their format.