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
commit adafd76280
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);