From fec30acf81abd1337ddc80278715547cea508382 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Thu, 27 Dec 2018 03:51:14 +0300 Subject: [PATCH] Allowed some UB #3926 --- dbms/src/AggregateFunctions/AggregateFunctionAvg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbms/src/AggregateFunctions/AggregateFunctionAvg.h b/dbms/src/AggregateFunctions/AggregateFunctionAvg.h index 9cc2d8e26ed..53b42c42c9a 100644 --- a/dbms/src/AggregateFunctions/AggregateFunctionAvg.h +++ b/dbms/src/AggregateFunctions/AggregateFunctionAvg.h @@ -25,7 +25,7 @@ struct AggregateFunctionAvgData UInt64 count = 0; template - ResultT result() const + ResultT NO_SANITIZE_UNDEFINED result() const { if constexpr (std::is_floating_point_v) if constexpr (std::numeric_limits::is_iec559)