aboutsummaryrefslogtreecommitdiff
path: root/src/txdb.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-02-18 17:12:48 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2014-02-18 17:13:32 +0100
commitad54a9b83f416d6bbd84eaaec55bf1e6f56308b1 (patch)
tree1ed05b58d6e2cbba7fa899ac55d6363a10feafb0 /src/txdb.h
parent5c9932345976de17b1a02401162466995d8355e3 (diff)
Change new constants in txdb.h to int64_t
A shift overflow was happening when using these to check against in init.cpp. Fixes #3702.
Diffstat (limited to 'src/txdb.h')
-rw-r--r--src/txdb.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/txdb.h b/src/txdb.h
index 0512396e97..5eb5731db3 100644
--- a/src/txdb.h
+++ b/src/txdb.h
@@ -19,11 +19,11 @@ class CCoins;
class uint256;
// -dbcache default (MiB)
-static const int nDefaultDbCache = 100;
+static const int64_t nDefaultDbCache = 100;
// max. -dbcache in (MiB)
-static const int nMaxDbCache = sizeof(void*) > 4 ? 4096 : 1024;
+static const int64_t nMaxDbCache = sizeof(void*) > 4 ? 4096 : 1024;
// min. -dbcache in (MiB)
-static const int nMinDbCache = 4;
+static const int64_t nMinDbCache = 4;
/** CCoinsView backed by the LevelDB coin database (chainstate/) */
class CCoinsViewDB : public CCoinsView