aboutsummaryrefslogtreecommitdiff
path: root/source/memory.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/memory.c')
-rw-r--r--source/memory.c4
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);