Commit f3e4674a authored by Varun Gupta's avatar Varun Gupta

Fix a compilation bug for 64 bit windows

parent 589a21c6
......@@ -2937,8 +2937,9 @@ SORT_FIELD_ATTR::pack_sort_string(uchar *to, const LEX_CSTRING &str,
CHARSET_INFO *cs) const
{
uchar *orig_to= to;
size_t length, data_length;
length= str.length;
uint32 length, data_length;
DBUG_ASSERT(str.length <= UINT32_MAX);
length= (uint32)str.length;
if (length + suffix_length <= original_length)
data_length= length;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment