Skip to content

Commit

Permalink
Fix copy-paste errors for some of the (rarley used) policies
Browse files Browse the repository at this point in the history
  • Loading branch information
jk-jeon committed Apr 4, 2024
1 parent 6d75a1d commit b158a5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/dragonbox/dragonbox.h
Original file line number Diff line number Diff line change
Expand Up @@ -2107,12 +2107,12 @@ namespace jkj {
template <class SignedSignificandBits>
static constexpr interval_type::asymmetric_boundary
normal_interval(SignedSignificandBits s) noexcept {
return {!s.is_negative()};
return {s.is_negative()};
}
template <class SignedSignificandBits>
static constexpr interval_type::asymmetric_boundary
shorter_interval(SignedSignificandBits s) noexcept {
return {!s.is_negative()};
return {s.is_negative()};
}
} nearest_toward_minus_infinity = {};

Expand Down Expand Up @@ -2247,7 +2247,7 @@ namespace jkj {
Args{}...))
delegate(SignedSignificandBits s, Func f, Args... args) noexcept {
return s.is_negative() ? f(nearest_away_from_zero, args...)
: f(nearest_away_from_zero, args...);
: f(nearest_toward_zero, args...);
}
} nearest_toward_minus_infinity_static_boundary = {};

Expand Down

0 comments on commit b158a5d

Please sign in to comment.