From b6121ca36a2ceafea1ad2eee4c5ceb199f18e440 Mon Sep 17 00:00:00 2001 From: Sergei Petrunia Date: Fri, 10 Sep 2021 19:49:33 +0300 Subject: Fix compile warnings/error on Windows --- sql/opt_histogram_json.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sql/opt_histogram_json.cc') diff --git a/sql/opt_histogram_json.cc b/sql/opt_histogram_json.cc index db75c8e09bd..2f4174ecf51 100644 --- a/sql/opt_histogram_json.cc +++ b/sql/opt_histogram_json.cc @@ -104,7 +104,7 @@ public: @param elem The value we are writing @param cnt The number of such values. */ - void start_bucket(void *elem, element_count cnt) + void start_bucket(void *elem, longlong cnt) { DBUG_ASSERT(bucket.size == 0); column->store_field_value((uchar*) elem, col_length); @@ -121,7 +121,7 @@ public: /* Append a value group of cnt values. */ - void append_to_bucket(element_count cnt) + void append_to_bucket(longlong cnt) { bucket.ndv++; bucket.size += cnt; @@ -141,7 +141,7 @@ public: @return 0 - OK */ - int next(void *elem, element_count elem_cnt) override + int next(void *elem, longlong elem_cnt) override { counters.next(elem, elem_cnt); ulonglong count= counters.get_count(); -- cgit v1.2.1