diff options
author | unknown <istruewing@stella.local> | 2007-11-23 12:52:29 +0100 |
---|---|---|
committer | unknown <istruewing@stella.local> | 2007-11-23 12:52:29 +0100 |
commit | 4d9f4895c654aa7337da0646dd57799f71b0052d (patch) | |
tree | e6428aedb49a6bb77a0b6536a04122de4f05b4e5 /myisam | |
parent | e5a17f5c306db31db3a7e4c94582e8130d3f8a27 (diff) | |
download | mariadb-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.c | 2 |
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; } |