aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/memory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/memory.c b/source/memory.c
index d7618a7..a9bcc30 100644
--- a/source/memory.c
+++ b/source/memory.c
@@ -56,7 +56,7 @@ static const int32_t pages_per_pow2[] = {
[19] = 128,
[20] = 256,
[21] = 512,
- [22] = 1024,
+ [22] = 1024
};
static kpl_memory_allocator_slab *kpl_memory_allocator_slab_init(int32_t size_pow2) {
@@ -94,7 +94,7 @@ static kpl_object *kpl_memory_allocator_slab_allocate(kpl_memory_allocator_slab_
}
void *kpl_memory_allocator_allocate(kpl_memory_allocator *memory_allocator, int32_t size, int32_t thread_id) {
- if (size < (1 << KPL_MEMORY_ALLOCATOR_MIN_ROUND_SIZE_POW2))
+ if (size < 1 << KPL_MEMORY_ALLOCATOR_MIN_ROUND_SIZE_POW2)
return NULL;
int32_t size_pow2 = kpl_memory_allocator_get_size_pow2(size);
if (size_pow2 < KPL_MEMORY_ALLOCATOR_MIN_SIZE_POW2)