Allowed some UB #3926

This commit is contained in:
Alexey Milovidov 2018-12-27 03:51:14 +03:00
parent 673fa80a9c
commit fec30acf81

View File

@ -25,7 +25,7 @@ struct AggregateFunctionAvgData
UInt64 count = 0;
template <typename ResultT>
ResultT result() const
ResultT NO_SANITIZE_UNDEFINED result() const
{
if constexpr (std::is_floating_point_v<ResultT>)
if constexpr (std::numeric_limits<ResultT>::is_iec559)