diff options
Diffstat (limited to 'strings')
-rw-r--r-- | strings/ctype-simple.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/strings/ctype-simple.c b/strings/ctype-simple.c index fb2dee99ba5..233251e16a8 100644 --- a/strings/ctype-simple.c +++ b/strings/ctype-simple.c @@ -1021,11 +1021,11 @@ uint my_charpos_8bit(CHARSET_INFO *cs __attribute__((unused)), } uint my_wellformedlen_8bit(CHARSET_INFO *cs __attribute__((unused)), - const char *b, - const char *e, + const char *start, + const char *end, uint nchars) { - uint nbytes= e-b; + uint nbytes= (uint) (end-start); return nbytes < nchars ? nbytes : nchars; } |