From a6e3e5aaf3af1fa05bc54b793f45d66b3e3f4a05 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Mon, 21 Jul 2025 18:06:31 +0200 Subject: fix: Fix some warnings --- string.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'string.h') diff --git a/string.h b/string.h index 2420f91..a984929 100644 --- a/string.h +++ b/string.h @@ -6,7 +6,8 @@ #ifndef STRING_H #define STRING_H -#define S(s) (Str){s, sizeof(s) - 1} +#define S(s) \ + (Str) { s, lengthof(s) } typedef struct { byte *data; size len; -- cgit v1.3