Skip to content

Commit

Permalink
Handle wanrings/errors from LLVM embedded
Browse files Browse the repository at this point in the history
  • Loading branch information
ckormanyos committed Jul 7, 2024
1 parent dfd4dba commit fd4406d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions math/wide_decimal/decwide_t_detail.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,14 @@
class native_float_parts final
{
public:
// Emphasize: This template class can be used with native
// floating-point types like float, double and long double.

native_float_parts() = delete;

~native_float_parts() noexcept = default; // LCOV_EXCL_LINE

private:
// Emphasize: This template class can be used with native
// floating-point types like float, double and long double.

template<const std::int32_t ParamDigitsBaseTen,
typename LimbType,
typename AllocatorType,
Expand Down Expand Up @@ -432,7 +432,7 @@

for(;;)
{
un = static_cast<local_unsigned_integral_type>(un / static_cast<local_unsigned_integral_type>(UINT8_C(10U)));
un = static_cast<local_unsigned_integral_type>(un / static_cast<local_unsigned_integral_type>(UINT8_C(10)));

p10 = static_cast<local_unsigned_exponent_type>(p10 * static_cast<local_unsigned_exponent_type>(UINT8_C(10)));

Expand Down
2 changes: 1 addition & 1 deletion math/wide_decimal/decwide_t_detail_fft.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
constexpr auto template_one<double>() -> double { return static_cast<double>(1.0F); } // NOLINT(cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers)

template<>
constexpr auto template_one<long double>() -> long double { return 1.0F; } // NOLINT(cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers)
constexpr auto template_one<long double>() -> long double { return static_cast<long double>(1.0F); } // NOLINT(cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers)

template<>
constexpr auto template_half<float>() -> float { return static_cast<float>(0.5L); } // NOLINT(cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers)
Expand Down

0 comments on commit fd4406d

Please sign in to comment.