Merge pull request #807 from mmichal10/mpool-enum

Return mempool instead of enum
This commit is contained in:
Robert Baldyga
2021-05-10 10:29:59 +02:00
committed by GitHub

View File

@@ -88,7 +88,7 @@ static env_allocator *env_mpool_get_allocator(
unsigned int idx;
if (unlikely(count == 0))
return env_mpool_1;
return mallocator->allocator[env_mpool_1];
idx = 31 - __builtin_clz(count);