From 07278a41e5f1f63e6db3826a783e0ae40fb7851f Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sat, 24 Feb 2024 15:52:10 +0000 Subject: [PATCH] Fix narrowing conversion warnings in pool resize capacity calculation --- 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 91b2095740..e8810706dd 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, Tgrowth_step))); this->data = ReallocT(this->data, new_size); MemSetT(this->data + this->size, 0, new_size - this->size);