BUG#31277 - myisamchk --unpack corrupts a table
Another try to fix a compiler warning on win64.
This commit is contained in:
parent
2cc3e56ea4
commit
6c39d13209
@ -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) (((uint) 1 << bits)); table < end; table++)
|
||||
for (end= table + ((my_ptrdiff_t) 1 << bits); table < end; table++)
|
||||
{
|
||||
*table= (uint16) value;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user