diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-10-20 14:11:31 -0400 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-10-20 14:11:31 -0400 |
| commit | 689719e0a1f139e28e57a4df334d5fde354b3379 (patch) | |
| tree | 2b5e0d0c4aced4886ff3c67729adceba45cac3b0 /source/memory.c | |
| parent | baa6f9cdea938c06435635f906b128f7940a59ec (diff) | |
config parse cli arguments
Diffstat (limited to 'source/memory.c')
| -rw-r--r-- | source/memory.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |
