summaryrefslogtreecommitdiff
path: root/sql/uniques.cc
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2017-09-28 12:21:16 +0000
committerVladislav Vaintroub <wlad@mariadb.com>2017-09-28 17:20:46 +0000
commitccf21c99623caa8596ed2eecc72dcb039ef0ef54 (patch)
tree34208e6b16e2140a0898c5e6282806cdb8a946ae /sql/uniques.cc
parent7354dc67737fdeb105656f5cec055da627bb9c29 (diff)
downloadmariadb-git-ccf21c99623caa8596ed2eecc72dcb039ef0ef54.tar.gz
fix some conversion warnings
Diffstat (limited to 'sql/uniques.cc')
-rw-r--r--sql/uniques.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/uniques.cc b/sql/uniques.cc
index 338f7c7c537..7def2d79ad7 100644
--- a/sql/uniques.cc
+++ b/sql/uniques.cc
@@ -79,7 +79,7 @@ int unique_intersect_write_to_ptrs(uchar* key, element_count count, Unique *uniq
Unique::Unique(qsort_cmp2 comp_func, void * comp_func_fixed_arg,
- uint size_arg, ulonglong max_in_memory_size_arg,
+ uint size_arg, size_t max_in_memory_size_arg,
uint min_dupl_count_arg)
:max_in_memory_size(max_in_memory_size_arg),
size(size_arg),
@@ -91,7 +91,7 @@ Unique::Unique(qsort_cmp2 comp_func, void * comp_func_fixed_arg,
if (min_dupl_count_arg)
full_size+= sizeof(element_count);
with_counters= MY_TEST(min_dupl_count_arg);
- init_tree(&tree, (ulong) (max_in_memory_size / 16), 0, size, comp_func,
+ init_tree(&tree, (max_in_memory_size / 16), 0, size, comp_func,
NULL, comp_func_fixed_arg, MYF(MY_THREAD_SPECIFIC));
/* If the following fail's the next add will also fail */
my_init_dynamic_array(&file_ptrs, sizeof(BUFFPEK), 16, 16,
@@ -306,7 +306,7 @@ static double get_merge_many_buffs_cost(uint *buffer,
*/
double Unique::get_use_cost(uint *buffer, size_t nkeys, uint key_size,
- ulonglong max_in_memory_size,
+ size_t max_in_memory_size,
uint compare_factor,
bool intersect_fl, bool *in_memory)
{