From a76ba1b33e397638c4209dd77e6073e423ac07a8 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 22 Apr 2019 02:34:30 +0200 Subject: Start on bytecode. Commit before os switch --- src/std/scoped_allocator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/std/scoped_allocator.c') diff --git a/src/std/scoped_allocator.c b/src/std/scoped_allocator.c index 3104fd3..8b161a1 100644 --- a/src/std/scoped_allocator.c +++ b/src/std/scoped_allocator.c @@ -41,7 +41,7 @@ static void buffer_deinit(Buffer *self) { static void scoped_allocator_deinit_buffers(ScopedAllocator *self) { Buffer **buffer; Buffer **buffers_end; - buffer = buffer_start(&self->buffers); + buffer = buffer_begin(&self->buffers); buffers_end = buffer_end(&self->buffers); while(buffer != buffers_end) { buffer_deinit(*buffer); @@ -53,7 +53,7 @@ static void scoped_allocator_deinit_buffers(ScopedAllocator *self) { static void scoped_allocator_deinit_mutexes(ScopedAllocator *self) { amal_mutex **mutex; amal_mutex **mutexes_end; - mutex = buffer_start(&self->mutexes); + mutex = buffer_begin(&self->mutexes); mutexes_end = buffer_end(&self->mutexes); while(mutex != mutexes_end) { amal_mutex_deinit(*mutex); -- cgit v1.2.3