diff --git a/sql/opt_histogram_json.cc b/sql/opt_histogram_json.cc index 9461bd03dbf85..510070448148a 100644 --- a/sql/opt_histogram_json.cc +++ b/sql/opt_histogram_json.cc @@ -58,7 +58,7 @@ class Histogram_json_builder : public Histogram_builder ha_rows rows) : Histogram_builder(col, col_len, rows), histogram(hist) { - bucket_capacity= (double)records / histogram->get_width(); + bucket_capacity= records / histogram->get_width(); hist_width= histogram->get_width(); n_buckets_collected= 0; bucket.ndv= 0;