summaryrefslogtreecommitdiff
path: root/src/conn/conn_cache.c
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2015-01-23 15:06:39 -0500
committerKeith Bostic <keith@wiredtiger.com>2015-01-23 15:06:39 -0500
commitb4c655ca0ba6a1e9f583f522833f45e9a3c42043 (patch)
treebf7fe9fa67ca44be67069cad0140c6add9152d0b /src/conn/conn_cache.c
parent2aae9fb628a10b03505135efe875c9be41a73856 (diff)
downloadmongo-b4c655ca0ba6a1e9f583f522833f45e9a3c42043.tar.gz
Loss of sign in promotion from long long to unsigned long long
Diffstat (limited to 'src/conn/conn_cache.c')
-rw-r--r--src/conn/conn_cache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/conn/conn_cache.c b/src/conn/conn_cache.c
index 64530398238..53e1fb483f2 100644
--- a/src/conn/conn_cache.c
+++ b/src/conn/conn_cache.c
@@ -32,7 +32,8 @@ __wt_cache_config(WT_SESSION_IMPL *session, const char *cfg[])
WT_RET(__wt_config_gets(session, cfg, "cache_overhead", &cval));
conn->cache_overhead = (int)cval.val;
if (cval.val != 0)
- conn->cache_size -= (conn->cache_size * cval.val) / 100;
+ conn->cache_size -=
+ (conn->cache_size * (uint64_t)cval.val) / 100;
} else {
WT_RET(__wt_config_gets(
session, cfg, "shared_cache.reserve", &cval));