Skip to content

Commit 5af972b

Browse files
committed
Add missing else case
1 parent 4094aa2 commit 5af972b

File tree

1 file changed

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

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ constexpr auto nextafter_impl(const DecimalType val, const bool direction) noexc
6565
++sig;
6666
--exp;
6767
}
68+
else
69+
{
70+
++sig;
71+
}
6872

6973
return DecimalType{sig, exp, is_neg};
7074
}

0 commit comments

Comments
 (0)