Commit 4d9f4895 authored by unknown's avatar unknown

BUG#31277 - myisamchk --unpack corrupts a table

Fixed a compiler warning on win64. Backport from 5.1.

parent e5a17f5c
......@@ -563,7 +563,7 @@ static void fill_quick_table(uint16 *table, uint bits, uint max_bits,
*/
value|= (max_bits - bits) << 8 | IS_CHAR;
for (end= table + ((uint) 1 << bits); table < end; table++)
for (end= table + (uint) (((uint) 1 << bits)); table < end; table++)
{
*table= (uint16) value;
}
......
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