Skip to content

Commit

Permalink
iox-#2087 Explicitly cast to 'void*'
Browse files Browse the repository at this point in the history
  • Loading branch information
elBoberido committed Nov 15, 2023
1 parent a7bad60 commit a7abab4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iceoryx_posh/source/mepoo/mem_pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<uint64_t>(index) * chunkSize;
return static_cast<uint8_t*>(rawMemoryBase) + offset;
return static_cast<void*>(static_cast<uint8_t*>(rawMemoryBase) + offset);
}

uint32_t
Expand Down

0 comments on commit a7abab4

Please sign in to comment.