From 95974c04403bbfb2fe3031e86785d354ef5e5906 Mon Sep 17 00:00:00 2001 From: Maks Naumov Date: Wed, 16 Nov 2016 09:56:29 +0200 Subject: [PATCH] Remove size_t -> unsigned -> size_t conversion. --- src/arena.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/arena.c b/src/arena.c index 75a92edc..488bfd47 100644 --- a/src/arena.c +++ b/src/arena.c @@ -131,8 +131,7 @@ arena_slab_reg_alloc(tsdn_t *tsdn, extent_t *slab, assert(slab_data->nfree > 0); assert(!bitmap_full(slab_data->bitmap, &bin_info->bitmap_info)); - regind = (unsigned)bitmap_sfu(slab_data->bitmap, - &bin_info->bitmap_info); + regind = bitmap_sfu(slab_data->bitmap, &bin_info->bitmap_info); ret = (void *)((uintptr_t)extent_addr_get(slab) + (uintptr_t)(bin_info->reg_size * regind)); slab_data->nfree--;