revision-id: daac419b35a057211bf8f1545569fa12598e203c (mariadb-10.6.1-106-gdaac419b35a) parent(s): 337282286b43f9278a78b0fe062fd2439f7db9ce author: Sergei Petrunia committer: Sergei Petrunia timestamp: 2021-08-31 11:09:02 +0300 message: Fix compiation on windows --- sql/sql_statistics.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/sql_statistics.h b/sql/sql_statistics.h index cc1028c238a..065c0d0c840 100644 --- a/sql/sql_statistics.h +++ b/sql/sql_statistics.h @@ -357,7 +357,7 @@ class Histogram_binary : public Histogram_base class Histogram_json : public Histogram_base { private: - uint8 size; /* Number of elements in the histogram */ + size_t size; /* Number of elements in the histogram */ /* Collection-time only: collected histogram in the JSON form. */ std::string json_text; @@ -376,7 +376,7 @@ class Histogram_json : public Histogram_base // returns number of buckets in the histogram uint get_width() override { - return size; + return (uint)size; } Histogram_type get_type() override