Skip to content

Commit 344d6d3

Browse files
committed
Fix compiler warnings
1 parent dff8649 commit 344d6d3

File tree

1 file changed

+1
-2
lines changed
  • include/boost/decimal/detail/cmath

1 file changed

+1
-2
lines changed

include/boost/decimal/detail/cmath/next.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ constexpr auto nextafter_impl(const DecimalType val, const bool direction) noexc
3535
constexpr DecimalType zero {0};
3636

3737
const bool is_neg {val < 0};
38-
const auto abs_val {abs(val)};
3938

4039
if (val == zero)
4140
{
@@ -56,7 +55,7 @@ constexpr auto nextafter_impl(const DecimalType val, const bool direction) noexc
5655
{
5756
// Not to make sure that denorms aren't normalized
5857
sig = removed_zeros.trimmed_number;
59-
exp += removed_zeros.number_of_removed_zeros;
58+
exp += static_cast<int>(removed_zeros.number_of_removed_zeros);
6059
}
6160

6261
if (direction)

0 commit comments

Comments
 (0)