From 6c39d1320936d9c397a03f2fe22d0519a50bb110 Mon Sep 17 00:00:00 2001 From: "istruewing@stella.local" <> Date: Mon, 26 Nov 2007 14:48:49 +0100 Subject: BUG#31277 - myisamchk --unpack corrupts a table Another try to fix a compiler warning on win64. --- myisam/mi_packrec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'myisam') diff --git a/myisam/mi_packrec.c b/myisam/mi_packrec.c index 523cdadbbd3..81fc4d046e7 100644 --- a/myisam/mi_packrec.c +++ b/myisam/mi_packrec.c @@ -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; } -- cgit v1.2.1