Skip to content

Commit

Permalink
Repair Win-CMake build in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ckormanyos committed Nov 1, 2023
1 parent bd6f3f8 commit ee5f219
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions math/wide_decimal/decwide_t_detail.h
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,8 @@
: (std::is_same<local_limb_type, std::uint16_t>::value ? static_cast<std::int32_t>(INT8_C(4))
: static_cast<std::int32_t>(INT8_C(2))));

static constexpr auto elem_mask = static_cast<std::int32_t>(pow10_maker(static_cast<std::uint32_t>(elem_digits10)));
static constexpr auto elem_mask_half = static_cast<std::int32_t>(pow10_maker(static_cast<std::uint32_t>(elem_digits10 / 2)));
static constexpr std::int32_t elem_mask = static_cast<std::int32_t>(pow10_maker(static_cast<std::uint32_t>(elem_digits10)));
static constexpr std::int32_t elem_mask_half = static_cast<std::int32_t>(pow10_maker(static_cast<std::uint32_t>(elem_digits10 / 2)));

static constexpr auto digit_at_pos_in_limb(local_limb_type u, unsigned pos) noexcept -> std::uint8_t
{
Expand Down Expand Up @@ -332,13 +332,13 @@
using base_class_type = decwide_t_helper_base<LimbType>;

public:
static constexpr auto digits10 = ParamDigitsBaseTen;
static constexpr auto digits = digits10;
static constexpr auto max_digits10 = static_cast<std::int32_t>(digits10 + static_cast<std::int32_t>(INT32_C(4)));
static constexpr auto radix = static_cast<std::int32_t>(INT32_C(10));
static constexpr std::int32_t digits10 = ParamDigitsBaseTen;
static constexpr std::int32_t digits = digits10;
static constexpr std::int32_t max_digits10 = static_cast<std::int32_t>(digits10 + static_cast<std::int32_t>(INT32_C(4)));
static constexpr std::int32_t radix = static_cast<std::int32_t>(INT32_C(10));

static constexpr auto elem_number_extra = static_cast<std::int32_t>(INT32_C(3));
static constexpr auto elem_number = static_cast<std::int32_t>(((digits10 / base_class_type::elem_digits10) + (((digits10 % base_class_type::elem_digits10) != 0) ? 1 : 0)) + elem_number_extra);
static constexpr std::int32_t elem_number_extra = static_cast<std::int32_t>(INT32_C(3));
static constexpr std::int32_t elem_number = static_cast<std::int32_t>(((digits10 / base_class_type::elem_digits10) + (((digits10 % base_class_type::elem_digits10) != 0) ? 1 : 0)) + elem_number_extra);
};

template<const std::int32_t ParamDigitsBaseTen, typename LimbType> constexpr std::int32_t decwide_t_helper<ParamDigitsBaseTen, LimbType>::digits10; // NOLINT(readability-redundant-declaration,hicpp-uppercase-literal-suffix,readability-uppercase-literal-suffix)
Expand Down

0 comments on commit ee5f219

Please sign in to comment.