diff options
author | bar@mysql.com <> | 2005-07-26 16:38:10 +0500 |
---|---|---|
committer | bar@mysql.com <> | 2005-07-26 16:38:10 +0500 |
commit | 637ec56206d19df6b073d04d9c08fd576b51ed00 (patch) | |
tree | fabb049775a54175ac5f745e7a41342f4fb22cc7 /strings/ctype-mb.c | |
parent | 31b1bdc52a7a17960a10ebae07f73cf158733033 (diff) | |
download | mariadb-git-637ec56206d19df6b073d04d9c08fd576b51ed00.tar.gz |
ctype-big5.c:
ctype-cp932.c:
ctype-gbk.c:
ctype-mb.c:
ctype-simple.c:
ctype-sjis.c:
ctype-ucs2.c:
ctype-ujis.c:
ctype-utf8.c:
Adding explicit cast to return type
in pointer substructions to avoid
warnings from some compilers.
Diffstat (limited to 'strings/ctype-mb.c')
-rw-r--r-- | strings/ctype-mb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/strings/ctype-mb.c b/strings/ctype-mb.c index cbbd035c631..4b22f158284 100644 --- a/strings/ctype-mb.c +++ b/strings/ctype-mb.c @@ -260,7 +260,7 @@ uint my_charpos_mb(CHARSET_INFO *cs __attribute__((unused)), pos+= (mblen= my_ismbchar(cs, pos, end)) ? mblen : 1; length--; } - return length ? end+2-start : pos-start; + return length ? (uint) (end + 2 - start) : (uint) (pos - start); } @@ -282,7 +282,7 @@ uint my_well_formed_len_mb(CHARSET_INFO *cs, const char *b, const char *e, b+= mblen; pos--; } - return b - b_start; + return (uint) (b - b_start); } |