From b4578c4be05f3255a6834b19ad1e0dc1fd4b7221 Mon Sep 17 00:00:00 2001 From: Amos Bird Date: Fri, 20 Dec 2019 09:55:46 +0800 Subject: [PATCH] build fix --- dbms/src/AggregateFunctions/AggregateFunctionGroupArray.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbms/src/AggregateFunctions/AggregateFunctionGroupArray.h b/dbms/src/AggregateFunctions/AggregateFunctionGroupArray.h index 432f315103a..ca3e9d78873 100644 --- a/dbms/src/AggregateFunctions/AggregateFunctionGroupArray.h +++ b/dbms/src/AggregateFunctions/AggregateFunctionGroupArray.h @@ -552,7 +552,7 @@ public: if (data(place).value.size() >= max_elems) return; - new_elems = std::min(data(rhs).value.size(), max_elems - data(place).value.size()); + new_elems = std::min(data(rhs).value.size(), static_cast(max_elems) - data(place).value.size()); } else new_elems = data(rhs).value.size(); @@ -805,7 +805,7 @@ public: if (data(place).elems >= max_elems) return; - new_elems = std::min(data(place).elems + data(rhs).elems, max_elems); + new_elems = std::min(data(place).elems + data(rhs).elems, static_cast(max_elems)); } else {