From 526b49e51831c9a933bc4cc186c655d96e1f5991 Mon Sep 17 00:00:00 2001 From: Ivar Fatland Date: Sun, 14 Dec 2025 15:31:51 +0100 Subject: [PATCH] change how contains works TODO: update tests --- cig.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cig.h b/cig.h index 31b8a12..6d0426f 100644 --- a/cig.h +++ b/cig.h @@ -192,8 +192,8 @@ bool dyn_array_contains_func(void *this, uint8_t *value); #define arr_contains(THIS, ...)\ (\ - STATIC_ASSERT(sizeof(*(THIS)) == sizeof(*(__VA_ARGS__))),\ - dyn_array_contains_func((THIS), (uint8_t*)(__VA_ARGS__))\ + STATIC_ASSERT(sizeof(*(THIS)) == sizeof(*(&__VA_ARGS__))),\ + dyn_array_contains_func((THIS), (uint8_t*)(&__VA_ARGS__))\ ) // Comparison function: returns true if a equals b, false otherwise