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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib9/utf/utfrune.c b/src/lib9/utf/utfrune.c
index b4017d26c..0136b2821 100644
--- a/src/lib9/utf/utfrune.c
+++ b/src/lib9/utf/utfrune.c
@@ -11,7 +11,6 @@
* REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
* OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
*/
-#include <stdarg.h>
#include <string.h>
#include "utf.h"
#include "utfdef.h"
@@ -25,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;