From e8ebd2e8452d91b85845968d72bae80a5e6353de Mon Sep 17 00:00:00 2001 From: Duc Canh Le Date: Tue, 31 Jan 2023 10:04:19 +0800 Subject: [PATCH] updateFrame returns size_t --- src/AggregateFunctions/AggregateFunctionSparkbar.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AggregateFunctions/AggregateFunctionSparkbar.h b/src/AggregateFunctions/AggregateFunctionSparkbar.h index acde00ab88e..ff7ba9c74a8 100644 --- a/src/AggregateFunctions/AggregateFunctionSparkbar.h +++ b/src/AggregateFunctions/AggregateFunctionSparkbar.h @@ -107,12 +107,12 @@ private: bool specified_min_max_x; template - int updateFrame(ColumnString::Chars & frame, const T value) const + size_t updateFrame(ColumnString::Chars & frame, const T value) const { static const String bars[9] = {" ", "▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"}; const auto & bar = (isNaN(value) || value > 8 || value < 1) ? bars[0] : bars[static_cast(value)]; frame.insert(bar.begin(), bar.end()); - return static_cast(bar.size()); + return bar.size(); } /**