summaryrefslogtreecommitdiff
path: root/sql/handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/handler.cc')
-rw-r--r--sql/handler.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/handler.cc b/sql/handler.cc
index 0d29dbeaa31..56cbddff66b 100644
--- a/sql/handler.cc
+++ b/sql/handler.cc
@@ -1079,7 +1079,7 @@ void ha_key_cache(void)
changes.
*/
pthread_mutex_lock(&LOCK_global_system_variables);
- long tmp= keybuff_size;
+ long tmp= (long) keybuff_size;
pthread_mutex_unlock(&LOCK_global_system_variables);
if (tmp)
(void) init_key_cache(tmp);
@@ -1089,7 +1089,7 @@ void ha_key_cache(void)
void ha_resize_key_cache(void)
{
pthread_mutex_lock(&LOCK_global_system_variables);
- long tmp= keybuff_size;
+ long tmp= (long) keybuff_size;
pthread_mutex_unlock(&LOCK_global_system_variables);
(void) resize_key_cache(tmp);
}