From 1659bd6b378accb07d3a520dfff38750411903a0 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 15 May 2024 00:06:49 +0200 Subject: _Generic selector should be a pointer --- include/mbstring.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/mbstring.h b/include/mbstring.h index 947195f..898bdca 100644 --- a/include/mbstring.h +++ b/include/mbstring.h @@ -54,7 +54,7 @@ rune u8cut(struct u8view *restrict, struct u8view *restrict, const rune *, /* Encoding-generic macros */ #define rtoucs(buf, bufsz, ch) \ _Generic((buf), char8_t *: rtou8)((buf), (bufsz), (ch)) -#define ucsnext(ch, sv) _Generic((sv), struct u8view: u8next)((ch), (sv)) +#define ucsnext(ch, sv) _Generic((sv), struct u8view *: u8next)((ch), (sv)) #define ucsprev(ch, sv, start) \ _Generic((sv), const char8_t **: u8prev)((ch), (sv), (start)) #define ucstor(ch, p) \ -- cgit v1.2.3