aboutsummaryrefslogtreecommitdiff
path: root/expr.c
diff options
context:
space:
mode:
Diffstat (limited to 'expr.c')
-rw-r--r--expr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/expr.c b/expr.c
index 20b943e..9a168de 100644
--- a/expr.c
+++ b/expr.c
@@ -531,11 +531,12 @@ stringconcat(struct stringlit *str, bool forceutf8)
len += strlen(src) - 2;
next();
} while (tok.kind == TSTRINGLIT);
- if (forceutf8 || kind == '8')
- kind = 0;
+ if (forceutf8)
+ kind = '8';
++len; /* null byte */
switch (kind) {
case 0: t = &typechar; break;
+ case '8': t = &typeuchar; break;
case 'u': t = &typeushort; break;
case 'U': t = &typeuint; break;
case 'L': t = targ->typewchar; break;