diff options
author | Monty <monty@mariadb.org> | 2015-11-20 10:00:06 +0200 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2015-11-20 10:00:06 +0200 |
commit | 1e156e1436f931625b7a5573584a786388979de2 (patch) | |
tree | 639e38f63dced79371e7946f46a36d6e1dc25e70 /sql/sql_explain.cc | |
parent | 981b4747538c742932561d278919fc4b57bd37eb (diff) | |
download | mariadb-git-1e156e1436f931625b7a5573584a786388979de2.tar.gz |
Fixed compile warnings on Solaris
Diffstat (limited to 'sql/sql_explain.cc')
-rw-r--r-- | sql/sql_explain.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_explain.cc b/sql/sql_explain.cc index f16ab92e0d6..8b3e6724c76 100644 --- a/sql/sql_explain.cc +++ b/sql/sql_explain.cc @@ -1122,7 +1122,7 @@ void Explain_index_use::set_pseudo_key(MEM_ROOT *root, const char* key_name_arg) } else key_name= NULL; - key_len= -1; + key_len= ~(uint) 0; } @@ -2252,7 +2252,7 @@ void Explain_update::print_explain_json(Explain_query *query, if (is_using_filesort()) { if (filesort_tracker->get_r_loops()) - r_rows= filesort_tracker->get_avg_examined_rows(); + r_rows= (ha_rows) filesort_tracker->get_avg_examined_rows(); else r_rows= 0; r_filtered= filesort_tracker->get_r_filtered() * 100.0; |