summaryrefslogtreecommitdiff
path: root/myisam
diff options
context:
space:
mode:
authorunknown <istruewing@stella.local>2007-11-26 14:48:49 +0100
committerunknown <istruewing@stella.local>2007-11-26 14:48:49 +0100
commit0b34220781f3b2b016595b651a94bfdfb5b23785 (patch)
treef924ac4d43d03b770f42cc3522a7a26f424e1ad4 /myisam
parentca632d68016ef238b09e3a7bae8ec57698be3c9d (diff)
downloadmariadb-git-0b34220781f3b2b016595b651a94bfdfb5b23785.tar.gz
BUG#31277 - myisamchk --unpack corrupts a table
Another try to fix a compiler warning on win64.
Diffstat (limited to 'myisam')
-rw-r--r--myisam/mi_packrec.c2
1 files changed, 1 insertions, 1 deletions
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;
}