summaryrefslogtreecommitdiff
path: root/sql/sql_analyze_stmt.cc
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2015-11-20 10:00:06 +0200
committerMonty <monty@mariadb.org>2015-11-20 10:00:06 +0200
commit1e156e1436f931625b7a5573584a786388979de2 (patch)
tree639e38f63dced79371e7946f46a36d6e1dc25e70 /sql/sql_analyze_stmt.cc
parent981b4747538c742932561d278919fc4b57bd37eb (diff)
downloadmariadb-git-1e156e1436f931625b7a5573584a786388979de2.tar.gz
Fixed compile warnings on Solaris
Diffstat (limited to 'sql/sql_analyze_stmt.cc')
-rw-r--r--sql/sql_analyze_stmt.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/sql/sql_analyze_stmt.cc b/sql/sql_analyze_stmt.cc
index 5e6774bd539..d11c93229b0 100644
--- a/sql/sql_analyze_stmt.cc
+++ b/sql/sql_analyze_stmt.cc
@@ -39,7 +39,7 @@ void Filesort_tracker::print_json_members(Json_writer *writer)
if (r_limit == 0)
writer->add_str(varied_str);
else
- writer->add_ll(rint(r_limit/get_r_loops()));
+ writer->add_ll((longlong) rint(r_limit/get_r_loops()));
}
writer->add_member("r_used_priority_queue");
@@ -50,13 +50,13 @@ void Filesort_tracker::print_json_members(Json_writer *writer)
else
writer->add_str(varied_str);
- writer->add_member("r_output_rows").add_ll(rint(r_output_rows /
- get_r_loops()));
+ writer->add_member("r_output_rows").add_ll((longlong) rint(r_output_rows /
+ get_r_loops()));
if (sort_passes)
{
- writer->add_member("r_sort_passes").add_ll(rint(sort_passes /
- get_r_loops()));
+ writer->add_member("r_sort_passes").add_ll((longlong) rint(sort_passes /
+ get_r_loops()));
}
if (sort_buffer_size != 0)