diff --git a/iceoryx_posh/source/mepoo/mem_pool.cpp b/iceoryx_posh/source/mepoo/mem_pool.cpp index df98185046..589137f766 100644 --- a/iceoryx_posh/source/mepoo/mem_pool.cpp +++ b/iceoryx_posh/source/mepoo/mem_pool.cpp @@ -104,7 +104,7 @@ void* MemPool::getChunk() noexcept void* MemPool::indexToPointer(uint32_t index, uint32_t chunkSize, void* const rawMemoryBase) noexcept { const auto offset = static_cast(index) * chunkSize; - return static_cast(rawMemoryBase) + offset; + return static_cast(static_cast(rawMemoryBase) + offset); } uint32_t