Skip to content

Commit 26b474e

Browse files
committed
Remove bad cast
1 parent 2d228e4 commit 26b474e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ constexpr auto cbrt_impl(const T x) noexcept
6161
remove_trailing_zeros(gn)
6262
};
6363

64-
const bool is_pure { static_cast<unsigned>(zeros_removal.trimmed_number) == 1U };
64+
const bool is_pure { zeros_removal.trimmed_number == 1U };
6565

6666
if(is_pure)
6767
{

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ constexpr auto log10_impl(const T x) noexcept
6363
remove_trailing_zeros(gn)
6464
};
6565

66-
const bool is_pure { static_cast<unsigned>(zeros_removal.trimmed_number) == 1U };
66+
const bool is_pure { zeros_removal.trimmed_number == 1U };
6767

6868
if(is_pure)
6969
{

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ constexpr auto sqrt_impl(const T x) noexcept
6161
remove_trailing_zeros(gn)
6262
};
6363

64-
const bool is_pure { static_cast<unsigned>(zeros_removal.trimmed_number) == 1U };
64+
const bool is_pure { zeros_removal.trimmed_number == 1U };
6565

6666
constexpr T one { 1 };
6767

0 commit comments

Comments
 (0)