From: ahmedsamyh Date: Fri, 28 Feb 2025 03:16:32 +0000 (+0500) Subject: [commonlib.h] Wrap sv arround () in SV_ARG(sv) X-Git-Url: https://www.git.momoyon.org/?a=commitdiff_plain;h=77a0dfec12406c5c9c96088f1538d2c7594a5cb7;p=commonlib.git [commonlib.h] Wrap sv arround () in SV_ARG(sv) --- diff --git a/commonlib.h b/commonlib.h index 1604c4f..fa6f626 100644 --- a/commonlib.h +++ b/commonlib.h @@ -256,7 +256,7 @@ typedef struct { } c_String_view; #define c_SV_FMT "%.*s" -#define c_SV_ARG(sv) (int)sv.count, sv.data +#define c_SV_ARG(sv) (int)(sv).count, (sv).data #define c_SV(cstr) (c_String_view){.data = cstr, strlen(cstr)}