Merge pull request #807 from mmichal10/mpool-enum
Return mempool instead of enum
This commit is contained in:
commit
adafd76280
@ -88,7 +88,7 @@ static env_allocator *env_mpool_get_allocator(
|
|||||||
unsigned int idx;
|
unsigned int idx;
|
||||||
|
|
||||||
if (unlikely(count == 0))
|
if (unlikely(count == 0))
|
||||||
return env_mpool_1;
|
return mallocator->allocator[env_mpool_1];
|
||||||
|
|
||||||
idx = 31 - __builtin_clz(count);
|
idx = 31 - __builtin_clz(count);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user