diff options
author | istruewing@stella.local <> | 2007-11-26 14:48:49 +0100 |
---|---|---|
committer | istruewing@stella.local <> | 2007-11-26 14:48:49 +0100 |
commit | 6c39d1320936d9c397a03f2fe22d0519a50bb110 (patch) | |
tree | f924ac4d43d03b770f42cc3522a7a26f424e1ad4 /myisam | |
parent | 2cc3e56ea410953dfa0c958fe310a896aa8d854d (diff) | |
download | mariadb-git-6c39d1320936d9c397a03f2fe22d0519a50bb110.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.c | 2 |
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; } |