From 3112ef90d63ebd48c3b203fce518f9b8d5900afa Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Tue, 20 Apr 2021 04:10:22 -0700 Subject: lib: missing L prefix in literal. * lib.h (wli_noex): The first of three literals being juxtaposed is missing the L prefix, leading to a mixture of wide and regular literals. This is supported by C, but let's avoid it. --- lib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib.h b/lib.h index e4040bc5..bd05f1e2 100644 --- a/lib.h +++ b/lib.h @@ -428,7 +428,7 @@ typedef struct wli wchli_t; #if LIT_ALIGN < 4 #define wli_noex(lit) (coerce(const wchli_t *,\ convert(const wchar_t *,\ - "\0" L ## lit L"\0" + 1))) + L"\0" L ## lit L"\0" + 1))) #define wini(ini) L"\0" L ## ini L"\0" #define wref(arr) ((arr) + 1) #else -- cgit v1.2.3