diff options
author | istruewing@stella.local <> | 2007-11-23 12:52:29 +0100 |
---|---|---|
committer | istruewing@stella.local <> | 2007-11-23 12:52:29 +0100 |
commit | 1d2a0d1d6ef9c406ed05b2d166d0ad21d17697e1 (patch) | |
tree | e6428aedb49a6bb77a0b6536a04122de4f05b4e5 /myisam | |
parent | 17399e7be3f42230fd4e4be44305fef148100467 (diff) | |
download | mariadb-git-1d2a0d1d6ef9c406ed05b2d166d0ad21d17697e1.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; } |