From 689719e0a1f139e28e57a4df334d5fde354b3379 Mon Sep 17 00:00:00 2001 From: nodist Date: Tue, 20 Oct 2026 14:11:31 -0400 Subject: config parse cli arguments --- source/memory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/memory.c') diff --git a/source/memory.c b/source/memory.c index a9bcc30..a9c3321 100644 --- a/source/memory.c +++ b/source/memory.c @@ -73,7 +73,7 @@ static void *kpl_memory_allocator_slab_bump(kpl_memory_allocator_slab *slab, int } static kpl_object *kpl_memory_allocator_slab_allocate(kpl_memory_allocator_slab_group *slab_group, - int32_t thread_id) { + uint16_t thread_id) { kpl_memory_allocator_slab *slab = slab_group->slab_tail; int32_t size = 1 << slab_group->slab_size_pow2; if (!slab || slab->buffer_used + size > slab->buffer_size) { @@ -93,7 +93,7 @@ static kpl_object *kpl_memory_allocator_slab_allocate(kpl_memory_allocator_slab_ return object; } -void *kpl_memory_allocator_allocate(kpl_memory_allocator *memory_allocator, int32_t size, int32_t thread_id) { +void *kpl_memory_allocator_allocate(kpl_memory_allocator *memory_allocator, int32_t size, uint16_t thread_id) { if (size < 1 << KPL_MEMORY_ALLOCATOR_MIN_ROUND_SIZE_POW2) return NULL; int32_t size_pow2 = kpl_memory_allocator_get_size_pow2(size); -- cgit v1.2.3