[Commits] 2dccb706369: Fix compile error on windows
revision-id: 2dccb706369b4e523c8fb2dcef95ac83fbd71e0a (mariadb-10.6.1-124-g2dccb706369) parent(s): e92d464e51f869144d683e19368762e74f5c7e98 author: Sergei Petrunia committer: Sergei Petrunia timestamp: 2021-09-10 14:59:32 +0300 message: Fix compile error on windows --- sql/opt_histogram_json.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/opt_histogram_json.cc b/sql/opt_histogram_json.cc index 9461bd03dbf..51007044814 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;
participants (1)
-
psergey