From eab5961989f51a824fe5cfe659f82c49a18a33e0 Mon Sep 17 00:00:00 2001
From: Sara <sara@saragerretsen.nl>
Date: Thu, 12 Sep 2024 21:32:14 +0200
Subject: [PATCH] fix: brackets around value macro definition

---
 typeclass_helpers.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/typeclass_helpers.h b/typeclass_helpers.h
index 832fdbe..130ee43 100644
--- a/typeclass_helpers.h
+++ b/typeclass_helpers.h
@@ -10,6 +10,6 @@ extern __Typeclass __Type##_as_##__Typeclass(__Type*);
 #define new(T) (malloc(sizeof(T)))
 #define new_as(T, TC) (T##_as_##TC(new(T)))
 #define tc_is_null(SELF) (SELF.data == NULL && SELF.tc == NULL)
-#define tc_null(TC) (TC){.data=NULL, .tc=NULL}
+#define tc_null(TC) ((TC){.data=NULL, .tc=NULL})
 
 #endif // !CUTES_TYPECLASS_HELPERS_H