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(); } /**