aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-05-15 00:06:49 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-05-15 00:06:49 +0200
commit1659bd6b378accb07d3a520dfff38750411903a0 (patch)
tree6b6e633091cbf102d65f2118eaf444605ab77e9a /include
parent12116eee483a088a53e81babfc55ee8a38d6a2ac (diff)
_Generic selector should be a pointer
Diffstat (limited to 'include')
-rw-r--r--include/mbstring.h2
1 files changed, 1 insertions, 1 deletions
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) \