summaryrefslogtreecommitdiff
path: root/strings/ctype-tis620.c
diff options
context:
space:
mode:
Diffstat (limited to 'strings/ctype-tis620.c')
-rw-r--r--strings/ctype-tis620.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/strings/ctype-tis620.c b/strings/ctype-tis620.c
index 2ae0142d510..98cc41dd26f 100644
--- a/strings/ctype-tis620.c
+++ b/strings/ctype-tis620.c
@@ -827,10 +827,10 @@ int my_mb_wc_tis620(CHARSET_INFO *cs __attribute__((unused)),
const unsigned char *end __attribute__((unused)))
{
if (str >= end)
- return MY_CS_TOOFEW(0);
+ return MY_CS_TOOSMALL;
*wc=cs_to_uni[*str];
- return (!wc[0] && str[0]) ? MY_CS_ILSEQ : 1;
+ return (!wc[0] && str[0]) ? -1 : 1;
}
static