diff options
author | Sergei Petrunia <psergey@askmonty.org> | 2021-09-10 19:49:33 +0300 |
---|---|---|
committer | Sergei Petrunia <psergey@askmonty.org> | 2022-01-19 18:10:10 +0300 |
commit | b6121ca36a2ceafea1ad2eee4c5ceb199f18e440 (patch) | |
tree | efb4053ca4724b73ce8c07f0d679126e29061116 /sql/opt_histogram_json.cc | |
parent | 6375873c9a70986b800d9a7e5005558cf1712ae9 (diff) | |
download | mariadb-git-b6121ca36a2ceafea1ad2eee4c5ceb199f18e440.tar.gz |
Fix compile warnings/error on Windows
Diffstat (limited to 'sql/opt_histogram_json.cc')
-rw-r--r-- | sql/opt_histogram_json.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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(); |