Bug #45286: compilation warnings on mysql-5.0-bugteam on MacOSX

Fixed the 5.0-bugteam MacOSX warnings.
This commit is contained in:
Georgi Kodinov 2009-06-05 15:05:26 +03:00
commit 5ec61b304c
5 changed files with 11 additions and 5 deletions

View file

@ -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;