summaryrefslogtreecommitdiff
path: root/myisam
diff options
context:
space:
mode:
authoristruewing@stella.local <>2007-11-26 14:48:49 +0100
committeristruewing@stella.local <>2007-11-26 14:48:49 +0100
commit6c39d1320936d9c397a03f2fe22d0519a50bb110 (patch)
treef924ac4d43d03b770f42cc3522a7a26f424e1ad4 /myisam
parent2cc3e56ea410953dfa0c958fe310a896aa8d854d (diff)
downloadmariadb-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.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;
}