fixing first compile bug

This commit is contained in:
myrrc 2020-12-17 21:17:38 +03:00
parent d24fc58c94
commit 494e9066c3

View File

@ -1000,8 +1000,20 @@ public:
/// non-vector result
if (col_left_const && col_right_const)
{
NativeResultType const_a = col_left_const->template getValue<T0>();
NativeResultType const_b = col_right_const->template getValue<T1>();
NativeResultType const_a;
NativeResultType const_b;
if constexpr (IsFloatingPoint<ResultDataType> && dec_a)
const_a = DecimalUtils::convertTo<NativeResultType>(
col_left_const->template getValue<T0>(), scale_a);
else
const_a = col_left_const->template getValue<T0>();
if constexpr (IsFloatingPoint<ResultDataType> && dec_b)
const_b = DecimalUtils::convertTo<NativeResultType>(
col_right_const->template getValue<T1>(), scale_b);
else
const_b = col_right_const->template getValue<T1>();
auto res = check_decimal_overflow ?
OpImplCheck::template constantConstant<dec_a, dec_b>(const_a, const_b, scale_a, scale_b) :