Skip to content

Commit

Permalink
Handle even more tidy messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ckormanyos committed Oct 12, 2024
1 parent 99af02b commit 728d878
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/example007_catalan_series.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace example007_catalan
template<typename FloatingPointType>
auto pi() -> FloatingPointType
{
return static_cast<FloatingPointType>(3.1415926535897932384626433832795029L); // NOLINT(cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers)
return static_cast<FloatingPointType>(3.1415926535897932384626433832795029L); // NOLINT(cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers,modernize-use-std-numbers)
}

template<>
Expand Down
2 changes: 1 addition & 1 deletion examples/example008_bernoulli_tgamma.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ namespace example008_bernoulli
template<typename FloatingPointType>
auto pi() -> FloatingPointType
{
return static_cast<FloatingPointType>(3.1415926535897932384626433832795029L); // NOLINT(cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers)
return static_cast<FloatingPointType>(3.1415926535897932384626433832795029L); // NOLINT(cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers,modernize-use-std-numbers)
}

template<>
Expand Down
5 changes: 4 additions & 1 deletion math/wide_decimal/decwide_t.h
Original file line number Diff line number Diff line change
Expand Up @@ -4500,7 +4500,10 @@
get_output_string(x, str, the_exp, number_of_digits10_i_want);

// Obtain additional format information.
const auto my_showpoint = ((ostrm_flags & std::ios::showpoint) != static_cast<local_flags_type>(UINT8_C(0)));
const bool my_showpoint
{
static_cast<local_flags_type>(ostrm_flags & std::ios::showpoint) == static_cast<local_flags_type>(std::ios::showpoint)
};

// Write the output string in the desired format.
if (my_float_field == detail::os_float_field_type::scientific) { wr_string_scientific(str, the_exp, os_precision, my_showpoint, my_uppercase); }
Expand Down

0 comments on commit 728d878

Please sign in to comment.