From 544f338b8e9ea010eccedbfa24bee5c97b7d3621 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Thu, 16 May 2024 16:37:39 +0200 Subject: walls, msvc building --- src/allocator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/allocator.c') 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; } -- cgit v1.2.3-70-g09d2