summaryrefslogtreecommitdiffstats
path: root/source/lib/kanji.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/lib/kanji.c')
-rw-r--r--source/lib/kanji.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/lib/kanji.c b/source/lib/kanji.c
index 8a7494e6d77..940457d1681 100644
--- a/source/lib/kanji.c
+++ b/source/lib/kanji.c
@@ -1249,7 +1249,7 @@ static char *sj_to_hex_static(const char *from)
const unsigned char *sp;
unsigned char *dp;
- sp = from;
+ sp = (const uchar *)from;
dp = (unsigned char*) cvtbuf;
while (*sp && (((char *)dp)- cvtbuf < sizeof(cvtbuf)-7)) {
if (is_kana(*sp)) {
@@ -1321,7 +1321,7 @@ static char *sj_to_cap_static(const char *from)
const unsigned char *sp;
unsigned char *dp;
- sp = from;
+ sp = (const uchar *)from;
dp = (unsigned char*) cvtbuf;
while (*sp && (((char *)dp) - cvtbuf < sizeof(cvtbuf)-4)) {
if (*sp >= 0x80) {