diff options
author | Georgi Kodinov <joro@sun.com> | 2009-06-05 15:05:26 +0300 |
---|---|---|
committer | Georgi Kodinov <joro@sun.com> | 2009-06-05 15:05:26 +0300 |
commit | ef1be5318848e54ff5f8b240446ab7791fa8a046 (patch) | |
tree | d9a8da33ea7968512cadbc8c78fba166c779e957 /strings | |
parent | 48e03a6ebe0cce0239c1c14836cf40f525eef395 (diff) | |
download | mariadb-git-ef1be5318848e54ff5f8b240446ab7791fa8a046.tar.gz |
Bug #45286: compilation warnings on mysql-5.0-bugteam on MacOSX
Fixed the 5.0-bugteam MacOSX warnings.
client/mysqldump.c:
Bug #45286: typecasts
cmd-line-utils/readline/bind.c:
Bug #45286: use variable of right type
cmd-line-utils/readline/display.c:
Bug #45286: use variable of right type
dbug/user.r:
Bug #45286: no warnings in generating man pages
strings/ctype.c:
Bug #45286: typecasts
Diffstat (limited to 'strings')
-rw-r--r-- | strings/ctype.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/strings/ctype.c b/strings/ctype.c index 548005f8463..8902cf958a0 100644 --- a/strings/ctype.c +++ b/strings/ctype.c @@ -327,7 +327,10 @@ my_string_repertoire(CHARSET_INFO *cs, const char *str, ulong length) { my_wc_t wc; int chlen; - for (; (chlen= cs->cset->mb_wc(cs, &wc, str, strend)) > 0; str+= chlen) + for (; (chlen= cs->cset->mb_wc(cs, &wc, + (const unsigned char *) str, + (const unsigned char *) strend)) > 0; + str+= chlen) { if (wc > 0x7F) return MY_REPERTOIRE_UNICODE30; |