summaryrefslogtreecommitdiff
path: root/src/allocator.c
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2024-05-16 16:37:39 +0200
committerAldrik Ramaekers <aldrikboy@gmail.com>2024-05-16 16:37:39 +0200
commit544f338b8e9ea010eccedbfa24bee5c97b7d3621 (patch)
tree029154f6de1a78c73a6aa9a5dfad2c16fb8928bd /src/allocator.c
parentb2ca9b477856cd8ea284389b91d718e8ea814d7b (diff)
walls, msvc building
Diffstat (limited to 'src/allocator.c')
-rw-r--r--src/allocator.c2
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;
}