summaryrefslogtreecommitdiff
path: root/myisam
diff options
context:
space:
mode:
authorunknown <istruewing@stella.local>2007-11-23 12:52:29 +0100
committerunknown <istruewing@stella.local>2007-11-23 12:52:29 +0100
commit4d9f4895c654aa7337da0646dd57799f71b0052d (patch)
treee6428aedb49a6bb77a0b6536a04122de4f05b4e5 /myisam
parente5a17f5c306db31db3a7e4c94582e8130d3f8a27 (diff)
downloadmariadb-git-4d9f4895c654aa7337da0646dd57799f71b0052d.tar.gz
BUG#31277 - myisamchk --unpack corrupts a table
Fixed a compiler warning on win64. Backport from 5.1.
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 389def395cb..523cdadbbd3 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) 1 << bits); table < end; table++)
+ for (end= table + (uint) (((uint) 1 << bits)); table < end; table++)
{
*table= (uint16) value;
}