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 | 5ec61b304c1c7ed03e5df9257f0bc5cb01f6bc36 (patch) | |
tree | d9a8da33ea7968512cadbc8c78fba166c779e957 /strings | |
parent | f0ae92f471d62a95b13364fd7a950cc315d41223 (diff) | |
download | mariadb-git-5ec61b304c1c7ed03e5df9257f0bc5cb01f6bc36.tar.gz |
Bug #45286: compilation warnings on mysql-5.0-bugteam on MacOSX
Fixed the 5.0-bugteam MacOSX warnings.
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; |