mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 03:17:20 +02:00
Fix and reenable Windows compiler warning C4800 (size_t conversion).
This commit is contained in:
parent
859d100d70
commit
9891ee5a2a
24 changed files with 72 additions and 72 deletions
|
|
@ -402,7 +402,7 @@ my_strnxfrm_8bit_bin(CHARSET_INFO *cs,
|
|||
if (dst != src)
|
||||
memcpy(dst, src, srclen);
|
||||
return my_strxfrm_pad_desc_and_reverse(cs, dst, dst + srclen, dst + dstlen,
|
||||
nweights - srclen, flags, 0);
|
||||
(uint)(nweights - srclen), flags, 0);
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -416,7 +416,7 @@ my_strnxfrm_8bit_nopad_bin(CHARSET_INFO *cs,
|
|||
if (dst != src)
|
||||
memcpy(dst, src, srclen);
|
||||
return my_strxfrm_pad_desc_and_reverse_nopad(cs, dst, dst + srclen,
|
||||
dst + dstlen, nweights - srclen,
|
||||
dst + dstlen,(uint)(nweights - srclen),
|
||||
flags, 0);
|
||||
}
|
||||
|
||||
|
|
@ -464,13 +464,13 @@ skip:
|
|||
if (nmatch > 0)
|
||||
{
|
||||
match[0].beg= 0;
|
||||
match[0].end= (size_t) (str- (const uchar*)b-1);
|
||||
match[0].end= (uint) (str- (const uchar*)b-1);
|
||||
match[0].mb_len= match[0].end;
|
||||
|
||||
if (nmatch > 1)
|
||||
{
|
||||
match[1].beg= match[0].end;
|
||||
match[1].end= match[0].end+s_length;
|
||||
match[1].end= (uint)(match[0].end+s_length);
|
||||
match[1].mb_len= match[1].end-match[1].beg;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue