summaryrefslogtreecommitdiff
path: root/strings
diff options
context:
space:
mode:
authorGeorgi Kodinov <joro@sun.com>2009-06-05 15:05:26 +0300
committerGeorgi Kodinov <joro@sun.com>2009-06-05 15:05:26 +0300
commit22454390c0ce1c3f90059811548a71ee18cac4f3 (patch)
treed9a8da33ea7968512cadbc8c78fba166c779e957 /strings
parent6199226f942a65a1ce80653146c4c3086695fec2 (diff)
downloadmariadb-git-22454390c0ce1c3f90059811548a71ee18cac4f3.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.c5
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;