]> www.git.momoyon.org Git - commonlib.git/commitdiff
[commonlib.h] Wrap sv arround () in SV_ARG(sv)
authorahmedsamyh <ahmedsamyh10@gmail.com>
Fri, 28 Feb 2025 03:16:32 +0000 (08:16 +0500)
committerahmedsamyh <ahmedsamyh10@gmail.com>
Fri, 28 Feb 2025 03:16:32 +0000 (08:16 +0500)
commonlib.h

index 1604c4f646a8eafb992cf37683a1c73eebcc5aee..fa6f6260e2954a103c87264e96af8908875afa0b 100644 (file)
@@ -256,7 +256,7 @@ typedef struct {
 } c_String_view;\r
 \r
 #define c_SV_FMT "%.*s"\r
-#define c_SV_ARG(sv) (int)sv.count, sv.data\r
+#define c_SV_ARG(sv) (int)(sv).count, (sv).data\r
 \r
 #define c_SV(cstr) (c_String_view){.data = cstr, strlen(cstr)}\r
 \r