diff options
Diffstat (limited to 'src/allocator.c')
| -rw-r--r-- | src/allocator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/allocator.c b/src/allocator.c index bddc5e5..b1989f6 100644 --- a/src/allocator.c +++ b/src/allocator.c @@ -13,7 +13,7 @@ void* allocator_alloc(allocator* al, uint64_t size) { mutex_lock(&al->mutex); if (al->cursor + size < al->size) { al->cursor += size; - void* result = al->memory + al->cursor - size; + char* result = (char*)al->memory + al->cursor - size; mutex_unlock(&al->mutex); return result; } |
