summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-04-20 04:10:22 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-04-20 04:10:22 -0700
commit3112ef90d63ebd48c3b203fce518f9b8d5900afa (patch)
treeeb139b0e66b56127ff0d679f6c31e058eb1d7f91
parent4020cbdc1afb502b1522eec088ce47bc9e7dac0e (diff)
downloadtxr-3112ef90d63ebd48c3b203fce518f9b8d5900afa.tar.gz
txr-3112ef90d63ebd48c3b203fce518f9b8d5900afa.tar.bz2
txr-3112ef90d63ebd48c3b203fce518f9b8d5900afa.zip
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.
-rw-r--r--lib.h2
1 files changed, 1 insertions, 1 deletions
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