From ee5f2197572a3fbdc22a3bc91a48df3dac0cd941 Mon Sep 17 00:00:00 2001 From: Christopher Kormanyos Date: Wed, 1 Nov 2023 06:09:17 +0100 Subject: [PATCH] Repair Win-CMake build in CI --- math/wide_decimal/decwide_t_detail.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/math/wide_decimal/decwide_t_detail.h b/math/wide_decimal/decwide_t_detail.h index 7b6243ed..5ad9a623 100644 --- a/math/wide_decimal/decwide_t_detail.h +++ b/math/wide_decimal/decwide_t_detail.h @@ -303,8 +303,8 @@ : (std::is_same::value ? static_cast(INT8_C(4)) : static_cast(INT8_C(2)))); - static constexpr auto elem_mask = static_cast(pow10_maker(static_cast(elem_digits10))); - static constexpr auto elem_mask_half = static_cast(pow10_maker(static_cast(elem_digits10 / 2))); + static constexpr std::int32_t elem_mask = static_cast(pow10_maker(static_cast(elem_digits10))); + static constexpr std::int32_t elem_mask_half = static_cast(pow10_maker(static_cast(elem_digits10 / 2))); static constexpr auto digit_at_pos_in_limb(local_limb_type u, unsigned pos) noexcept -> std::uint8_t { @@ -332,13 +332,13 @@ using base_class_type = decwide_t_helper_base; public: - static constexpr auto digits10 = ParamDigitsBaseTen; - static constexpr auto digits = digits10; - static constexpr auto max_digits10 = static_cast(digits10 + static_cast(INT32_C(4))); - static constexpr auto radix = static_cast(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(digits10 + static_cast(INT32_C(4))); + static constexpr std::int32_t radix = static_cast(INT32_C(10)); - static constexpr auto elem_number_extra = static_cast(INT32_C(3)); - static constexpr auto elem_number = static_cast(((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(INT32_C(3)); + static constexpr std::int32_t elem_number = static_cast(((digits10 / base_class_type::elem_digits10) + (((digits10 % base_class_type::elem_digits10) != 0) ? 1 : 0)) + elem_number_extra); }; template constexpr std::int32_t decwide_t_helper::digits10; // NOLINT(readability-redundant-declaration,hicpp-uppercase-literal-suffix,readability-uppercase-literal-suffix)