From e9d374f44300f67d4f3974c043b0c0588bfdb869 Mon Sep 17 00:00:00 2001 From: wrmr Date: Wed, 8 Oct 2025 19:29:10 -0400 Subject: changes to make GCC shut up --- str.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'str.h') diff --git a/str.h b/str.h index b10bc64..83f0cb4 100644 --- a/str.h +++ b/str.h @@ -15,7 +15,8 @@ typedef struct { Str head, tail; } Cut; -#define S(s) (Str){s,sizeof(s)-1} +#define Ss(s) {s,sizeof(s)-1} +#define S(s) (Str)Ss(s) char *str_to_cstr(Str s, Arena *a); Str str_from_cstr(const char *s); -- cgit v1.2.3