mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-17 08:01:49 +03:00
Remove size_t -> unsigned -> size_t conversion.
This commit is contained in:
parent
9b94c015af
commit
95974c0440
1 changed files with 1 additions and 2 deletions
|
|
@ -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--;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue