From af4da5796f6e9d36c82ca89135c65f8ff7a265ec Mon Sep 17 00:00:00 2001 From: Andreas Streichardt Date: Tue, 16 May 2017 17:00:31 +0200 Subject: [PATCH] More windows warnings --- arangod/Cache/CacheManagerFeature.cpp | 2 +- lib/ApplicationFeatures/RocksDBOptionFeature.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arangod/Cache/CacheManagerFeature.cpp b/arangod/Cache/CacheManagerFeature.cpp index ab9b29e18c..1dca764db7 100644 --- a/arangod/Cache/CacheManagerFeature.cpp +++ b/arangod/Cache/CacheManagerFeature.cpp @@ -57,7 +57,7 @@ CacheManagerFeature::CacheManagerFeature( _manager(nullptr), _rebalancer(nullptr), _cacheSize((TRI_PhysicalMemory >= (static_cast(4) << 30)) - ? ((TRI_PhysicalMemory - (static_cast(2) << 30)) * 0.3) + ? static_cast((TRI_PhysicalMemory - (static_cast(2) << 30)) * 0.3) : (256 << 20)), _rebalancingInterval(static_cast(2 * 1000 * 1000)) { setOptional(true); diff --git a/lib/ApplicationFeatures/RocksDBOptionFeature.cpp b/lib/ApplicationFeatures/RocksDBOptionFeature.cpp index ab63e52446..b22251693f 100644 --- a/lib/ApplicationFeatures/RocksDBOptionFeature.cpp +++ b/lib/ApplicationFeatures/RocksDBOptionFeature.cpp @@ -61,7 +61,7 @@ RocksDBOptionFeature::RocksDBOptionFeature( _numThreadsHigh(rocksDBDefaults.max_background_flushes), _numThreadsLow(rocksDBDefaults.max_background_compactions), _blockCacheSize((TRI_PhysicalMemory >= (static_cast(4) << 30)) - ? ((TRI_PhysicalMemory - (static_cast(2) << 30)) * 0.3) + ? static_cast(((TRI_PhysicalMemory - (static_cast(2) << 30)) * 0.3)) : (256 << 20)), _blockCacheShardBits(0), _recycleLogFileNum(rocksDBDefaults.recycle_log_file_num),