From c4ab62a68f81fda1365bab9e5200f27a6a986bae Mon Sep 17 00:00:00 2001 From: pommicket Date: Sun, 8 Sep 2024 14:56:12 -0400 Subject: manual indentation, command palette fixes --- ds.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ds.h') diff --git a/ds.h b/ds.h index 8cd30e6..32b6ad4 100644 --- a/ds.h +++ b/ds.h @@ -296,7 +296,7 @@ static void *arr_copy_(const void *arr, size_t member_size) { #define arr_remove_last(a) do { assert(a); if (--arr_hdr_(a)->len == 0) arr_free(a); } while (0) #define arr_remove(a, i) (void)((a) = arr_remove_((a), sizeof *(a), (i))) #define arr_remove_item(a, item) do { for (u32 _i = 0; _i < arr_len((a)); ++_i) if ((a)[_i] == item) { arr_remove((a), _i); break; } } while (0); -#define arr_index_of(a, item) (sizeof((a)[0] == (item)), arr_index_of_((a), sizeof *(a), &(item))) +#define arr_index_of(a, item) ((void)sizeof((a)[0] == (item)), arr_index_of_((a), sizeof *(a), &(item))) #define arr_remove_multiple(a, i, n) (void)((a) = arr_remove_multiple_((a), sizeof *(a), (i), (n))) #define arr_insert(a, i, x) do { u32 _index = (i); (a) = arr_cast_typeof(a) arr_grow1_((a), sizeof *(a)); \ if (a) { memmove((a) + _index + 1, (a) + _index, (arr_len(a) - _index) * sizeof *(a));\ -- cgit v1.2.3