From 33223c7d9a80e821bccce25960f7e48ab425d975 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 24 Jun 2019 05:14:07 +0200 Subject: Fix errors from pedantic check --- src/std/buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/std') 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; } } -- cgit v1.2.3