diff options
Diffstat (limited to 'src/lib9/utf/utfrrune.c')
-rw-r--r-- | src/lib9/utf/utfrrune.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib9/utf/utfrrune.c b/src/lib9/utf/utfrrune.c index 95d2a9d8a..9e28af82a 100644 --- a/src/lib9/utf/utfrrune.c +++ b/src/lib9/utf/utfrrune.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 @@ utfrrune(const char *s, Rune c) const char *s1; if(c < Runesync) /* not part of utf sequence */ - return strrchr(s, c); + return strrchr(s, (char)c); s1 = 0; for(;;) { |