summaryrefslogtreecommitdiff
path: root/sql/uniques.cc
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@montyprogram.com>2011-02-18 23:31:01 +0100
committerVladislav Vaintroub <wlad@montyprogram.com>2011-02-18 23:31:01 +0100
commit019256c9fc857bb89b1ca2ccc232f5ae4a67b992 (patch)
tree71ebae0cb36c1aa0045a38445da55afd17468e2c /sql/uniques.cc
parente906ffcf9c951c8539700487e2bcc62e1c064dc7 (diff)
downloadmariadb-git-019256c9fc857bb89b1ca2ccc232f5ae4a67b992.tar.gz
Fix numerous warnings introduced in the last pushes on Windows
Diffstat (limited to 'sql/uniques.cc')
-rw-r--r--sql/uniques.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/uniques.cc b/sql/uniques.cc
index e309caf9849..4e5b52cef56 100644
--- a/sql/uniques.cc
+++ b/sql/uniques.cc
@@ -290,17 +290,17 @@ static double get_merge_many_buffs_cost(uint *buffer,
these will be random seeks.
*/
-double Unique::get_use_cost(uint *buffer, uint nkeys, uint key_size,
+double Unique::get_use_cost(uint *buffer, size_t nkeys, uint key_size,
ulonglong max_in_memory_size,
uint compare_factor,
bool intersect_fl, bool *in_memory)
{
- ulong max_elements_in_tree;
- ulong last_tree_elems;
+ size_t max_elements_in_tree;
+ size_t last_tree_elems;
int n_full_trees; /* number of trees in unique - 1 */
double result;
- max_elements_in_tree= ((ulong) max_in_memory_size /
+ max_elements_in_tree= ((size_t) max_in_memory_size /
ALIGN_SIZE(sizeof(TREE_ELEMENT)+key_size));
n_full_trees= nkeys / max_elements_in_tree;