Merge with master

This commit is contained in:
Alexey Milovidov 2021-05-09 19:01:38 +03:00
parent 9753ddc8a0
commit ce4bf58029

View File

@ -70,7 +70,10 @@ struct ArrayDifferenceImpl
using ResultNativeType = typename Result::NativeType;
ResultNativeType result_value;
bool overflow = common::subOverflow(static_cast<ResultNativeType>(curr.value), static_cast<ResultNativeType>(prev), result_value);
bool overflow = common::subOverflow(
static_cast<ResultNativeType>(curr.value),
static_cast<ResultNativeType>(prev.value),
result_value);
if (overflow)
throw Exception(ErrorCodes::DECIMAL_OVERFLOW, "Decimal math overflow");