Fix integer overflow of cachesize on windows

remotes/origin/0.7.0-dev
DeepBlueV7.X 5 years ago committed by GitHub
parent 096db389d1
commit 275d4dfed9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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 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.

Loading…
Cancel
Save