From ee7a347287704daa2e0a53c1e441f0184c8c36b7 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sun, 25 Feb 2024 02:50:55 +0000 Subject: [PATCH] Fix 07278a41: Narrowing conversion warning fix --- src/core/pool_func.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/pool_func.hpp b/src/core/pool_func.hpp index 131c7e9a9d..0f1bfdb3dc 100644 --- a/src/core/pool_func.hpp +++ b/src/core/pool_func.hpp @@ -55,7 +55,7 @@ DEFINE_POOL_METHOD(inline void)::ResizeFor(size_t index) dbg_assert(index >= this->size); dbg_assert(index < Tmax_size); - size_t new_size = std::min(Tmax_size, Align(std::max(index + 1, (this->size * 3) / 2), std::max(64, Tgrowth_step))); + size_t new_size = std::min(Tmax_size, Align(std::max(index + 1, (this->size * 3) / 2), std::max(64, static_cast(Tgrowth_step)))); this->data = ReallocT(this->data, new_size); MemSetT(this->data + this->size, 0, new_size - this->size);