From 5f9f14fc0f6b88c35749c5b15093eabeb0fb66b0 Mon Sep 17 00:00:00 2001 From: Tor Egge Date: Tue, 7 Nov 2023 10:21:39 +0100 Subject: Use int64_t constants. --- storage/src/vespa/storage/storageserver/mergethrottler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/src/vespa/storage/storageserver/mergethrottler.cpp b/storage/src/vespa/storage/storageserver/mergethrottler.cpp index b341c676fc9..54a4ddbc780 100644 --- a/storage/src/vespa/storage/storageserver/mergethrottler.cpp +++ b/storage/src/vespa/storage/storageserver/mergethrottler.cpp @@ -1355,8 +1355,8 @@ MergeThrottler::set_hw_info_locking(const vespalib::HwInfo& hw_info) { size_t MergeThrottler::deduced_memory_limit(const StorServerConfig& cfg) const noexcept { - const auto min_limit = static_cast(std::max(cfg.mergeThrottlingMemoryLimit.autoLowerBoundBytes, 1L)); - const auto max_limit = std::max(static_cast(std::max(cfg.mergeThrottlingMemoryLimit.autoUpperBoundBytes, 1L)), min_limit); + const auto min_limit = static_cast(std::max(cfg.mergeThrottlingMemoryLimit.autoLowerBoundBytes, INT64_C(1))); + const auto max_limit = std::max(static_cast(std::max(cfg.mergeThrottlingMemoryLimit.autoUpperBoundBytes, INT64_C(1))), min_limit); const auto mem_scale_factor = std::max(cfg.mergeThrottlingMemoryLimit.autoPhysMemScaleFactor, 0.0); const auto node_mem = static_cast(_hw_info.memory().sizeBytes()); -- cgit v1.2.3