aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.c b/test.c
index c5ce521..ce37818 100644
--- a/test.c
+++ b/test.c
@@ -24,7 +24,7 @@ struct test {
__attribute__((__used__)) = \
{ test_##name, desc }; \
static bool test_##name(void)
-#define DATA(...) (unsigned char []){ __VA_ARGS__ }
+#define DATA(...) ((unsigned char []){ __VA_ARGS__ })
#define CHECK(test) if (!(test)) { puts("! " #test); return false; }
#define CHECK_UNPACK(data, fmt, ...) do { \
@@ -44,7 +44,7 @@ struct test {
CHECK_UNPACK_STRUCT_s); \
return false; \
} \
-} while(0)
+} while (0)
#define CHECK_EQUAL(f, a, b) if (a != b) { printf(__FILE__ ":%d %"f" != %"f"\n", __LINE__, a, b); return false; }