diff options
Diffstat (limited to 'pool.h')
-rw-r--r-- | pool.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -46,7 +46,7 @@ bool AddBlockToPool(MemoryPool *array); */ bool AddBlockIfNeeded(MemoryPool *array, uint index); -static inline byte *GetItemFromPool(MemoryPool *pool, uint index) +static inline byte *GetItemFromPool(const MemoryPool *pool, uint index) { assert(index < pool->total_items); return (pool->blocks[index >> pool->block_size_bits] + (index & ((1 << pool->block_size_bits) - 1)) * pool->item_size); |