X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=smalloc.c;h=cab7132511b1729b152278f119d300c83f54b5d2;hp=e48cfe8b1c11339d8e566743472795606668d588;hb=867f90e36d9d1458b20e5fab4542ce6c631f2633;hpb=861e3790be5f1e22b16e827b142147e530205441 diff --git a/smalloc.c b/smalloc.c index e48cfe8b..cab71325 100644 --- a/smalloc.c +++ b/smalloc.c @@ -189,7 +189,7 @@ static bool add_pool(struct pool *pool, unsigned int alloc_size) goto out_fail; pool->map = ptr; - pool->bitmap = (void *) ptr + (pool->nr_blocks * SMALLOC_BPL); + pool->bitmap = (unsigned int *)((char *) ptr + (pool->nr_blocks * SMALLOC_BPL)); memset(pool->bitmap, 0, bitmap_blocks * sizeof(unsigned int)); pool->lock = fio_mutex_init(FIO_MUTEX_UNLOCKED);