diff --git a/src/Functions/FunctionBinaryArithmetic.h b/src/Functions/FunctionBinaryArithmetic.h index 62a50f5e0c2..e31183573c3 100644 --- a/src/Functions/FunctionBinaryArithmetic.h +++ b/src/Functions/FunctionBinaryArithmetic.h @@ -1719,7 +1719,7 @@ public: } } else if constexpr (((IsDataTypeDecimal && IsFloatingPoint) || - (IsDataTypeDecimal && IsFloatingPoint)) && !(is_div_int || is_div_int_or_zero)) + (IsDataTypeDecimal && IsFloatingPoint))) { if constexpr ((is_div_int || is_div_int_or_zero) && IsDataTypeDecimal) { @@ -1760,7 +1760,7 @@ public: } else if constexpr (IsDataTypeDecimal) { - if constexpr ((is_div_int || is_div_int_or_zero) && IsIntegral) + if constexpr ((is_div_int || is_div_int_or_zero) && IsIntegralOrExtended) type_res = std::make_shared(); else if constexpr (is_div_int || is_div_int_or_zero) {