From fddce452aef5c7371e138efedfbc1a460aa70f23 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 27 Apr 2024 21:07:30 +0200 Subject: Fix broken things (_Generic() sucks ass) --- 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 04af4fd..e487da5 100644 --- a/include/mbstring.h +++ b/include/mbstring.h @@ -11,7 +11,7 @@ #define U8(s) \ _Generic((s), \ nullptr_t: ((struct u8view){}), \ - default: ((struct u8view){.p = (u8##s), .len = sizeof(s) - 1})) + default: ((struct u8view){.p = (s), .len = sizeof(s) - 1})) #define U8_ARGS(s) ((s).p), ((s).len) #define U8_ARGSP(s) (&(s).p), (&(s).len) -- cgit v1.2.3