summaryrefslogtreecommitdiff
path: root/strings
diff options
context:
space:
mode:
Diffstat (limited to 'strings')
-rw-r--r--strings/ctype-mb.c2
-rw-r--r--strings/ctype-uca.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/strings/ctype-mb.c b/strings/ctype-mb.c
index fddb8d2a16b..258613d3b05 100644
--- a/strings/ctype-mb.c
+++ b/strings/ctype-mb.c
@@ -697,7 +697,7 @@ my_bool my_like_range_mb(CHARSET_INFO *cs,
char *max_end= max_str + res_length;
size_t maxcharlen= res_length / cs->mbmaxlen;
const char *contraction_flags= cs->contractions ?
- ((const char*) cs->contractions) + 0x40*0x40 : NULL;
+ (const char *) (cs->contractions + 0x40*0x40) : NULL;
for (; ptr != end && min_str != min_end && maxcharlen ; maxcharlen--)
{
diff --git a/strings/ctype-uca.c b/strings/ctype-uca.c
index 8cd850b06df..7ec2e9851e1 100644
--- a/strings/ctype-uca.c
+++ b/strings/ctype-uca.c
@@ -8046,7 +8046,7 @@ static my_bool create_tailoring(CHARSET_INFO *cs, void *(*alloc)(size_t))
if (!(cs->contractions= (uint16*) (*alloc)(size)))
return 1;
bzero((void*)cs->contractions, size);
- contraction_flags= ((char*) cs->contractions) + 0x40*0x40;
+ contraction_flags= (char *) (cs->contractions + 0x40*0x40);
for (i=0; i < rc; i++)
{
if (rule[i].curr[1])