BUG#31277 - myisamchk --unpack corrupts a table

Another try to fix a compiler warning on win64.
This commit is contained in:
istruewing@stella.local 2007-11-26 14:48:49 +01:00
parent 2cc3e56ea4
commit 6c39d13209

View File

@ -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;
}