From 2dab66694bb72ee222a44c49c669e9f5adc024f0 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Thu, 29 Feb 2024 00:51:42 +0100 Subject: Load audio file with miniaudio instead of dr_libs; Fix null dereference when loading empty sampler --- source/kit/shared_mutex.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/kit/shared_mutex.h') diff --git a/source/kit/shared_mutex.h b/source/kit/shared_mutex.h index d202090..ad83418 100644 --- a/source/kit/shared_mutex.h +++ b/source/kit/shared_mutex.h @@ -47,7 +47,7 @@ static void kit_shared_mutex_init(kit_shared_mutex_t *m) { memory_order_relaxed); } -static i8 kit_shared_try_lock(kit_shared_mutex_t *m) { +static b8 kit_shared_try_lock(kit_shared_mutex_t *m) { assert(m != NULL); for (;;) { @@ -108,7 +108,7 @@ static void kit_shared_unlock(kit_shared_mutex_t *m) { assert(0); } -static i8 kit_unique_try_lock(kit_shared_mutex_t *m) { +static b8 kit_unique_try_lock(kit_shared_mutex_t *m) { assert(m != NULL); i8 prev_state = KIT_SHARED_MUTEX_READY; -- cgit v1.2.3