summaryrefslogtreecommitdiff
path: root/ds.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2024-09-08 14:56:12 -0400
committerpommicket <pommicket@gmail.com>2024-09-08 14:56:12 -0400
commitc4ab62a68f81fda1365bab9e5200f27a6a986bae (patch)
tree75efd94bc517c1aca84be2d10bb24ef5df642d46 /ds.h
parentd37fe5d5d27d91a28776baf2593fefc0b749cc85 (diff)
manual indentation, command palette fixes
Diffstat (limited to 'ds.h')
-rw-r--r--ds.h2
1 files changed, 1 insertions, 1 deletions
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));\