aboutsummaryrefslogtreecommitdiff
path: root/src/std/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/std/buffer.c')
-rw-r--r--src/std/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/std/buffer.c b/src/std/buffer.c
index ddf7d39..3676cee 100644
--- a/src/std/buffer.c
+++ b/src/std/buffer.c
@@ -12,7 +12,7 @@ int buffer_init(Buffer *self, struct ScopedAllocator *allocator) {
if(allocator) {
return scoped_allocator_add_mem(allocator, &self->allocator_index);
} else {
- self->allocator_index = ~0ULL;
+ self->allocator_index = ~(usize)0;
return 0;
}
}