Skip to content

Commit 14d4bbf

Browse files
committed
Fix unreachable code
1 parent 5145c7f commit 14d4bbf

File tree

1 file changed

+0
-10
lines changed
  • include/boost/decimal/detail/cmath

1 file changed

+0
-10
lines changed

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,6 @@ constexpr auto nan_impl(const char* arg) noexcept
4545
{
4646
return write_payload<TargetDecimalType, is_snan>(payload_value);
4747
}
48-
49-
TargetDecimalType return_value {nan_type};
50-
if (!r)
51-
{
52-
return return_value;
53-
}
54-
else
55-
{
56-
return write_payload<TargetDecimalType, is_snan>(payload_value);
57-
}
5848
}
5949

6050
template <typename TargetDecimalType, bool is_snan>

0 commit comments

Comments
 (0)