summaryrefslogtreecommitdiff
path: root/src/lib9/utf/utfrune.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib9/utf/utfrune.c')
-rw-r--r--src/lib9/utf/utfrune.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib9/utf/utfrune.c b/src/lib9/utf/utfrune.c
index 863a1846f..0136b2821 100644
--- a/src/lib9/utf/utfrune.c
+++ b/src/lib9/utf/utfrune.c
@@ -24,7 +24,7 @@ utfrune(const char *s, Rune c)
int n;
if(c < Runesync) /* not part of utf sequence */
- return strchr(s, c);
+ return strchr(s, (char)c);
for(;;) {
c1 = *(uchar*)s;