diff options
author | Keith Bostic <keith@wiredtiger.com> | 2015-01-23 15:06:39 -0500 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2015-01-23 15:06:39 -0500 |
commit | b4c655ca0ba6a1e9f583f522833f45e9a3c42043 (patch) | |
tree | bf7fe9fa67ca44be67069cad0140c6add9152d0b /src/conn/conn_cache.c | |
parent | 2aae9fb628a10b03505135efe875c9be41a73856 (diff) | |
download | mongo-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.c | 3 |
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)); |