Skip to content

Commit

Permalink
works on my ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonly committed Oct 19, 2021
1 parent e7d8c44 commit ba6c8c4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dbms/src/Functions/tests/gtest_arithmetic_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -762,9 +762,8 @@ try
using NativeType = Decimal::NativeType; \
using FieldType = DecimalField<Decimal>; \
auto prec = (precision); \
auto & builder = DecimalMaxValue::instance(); \
auto max_scale = std::min(decimal_max_scale, static_cast<ScaleType>(prec) - 1); \
auto exp10_x = static_cast<NativeType>(builder.Get(max_scale)) + 1; /* exp10_x: 10^x */ \
auto exp10_x = static_cast<NativeType>(DecimalMaxValue::get(max_scale)) + 1; /* exp10_x: 10^x */ \
auto decimal_max = exp10_x * 10 - 1; \
auto zero = static_cast<NativeType>(0); /* for Int256 */ \
ASSERT_COLUMN_EQ( \
Expand Down

0 comments on commit ba6c8c4

Please sign in to comment.