From b158a5d7062c301236aa566ad3e81f6fa90b65c1 Mon Sep 17 00:00:00 2001 From: Junekey Jeon Date: Thu, 4 Apr 2024 14:20:54 -0700 Subject: [PATCH] Fix copy-paste errors for some of the (rarley used) policies --- include/dragonbox/dragonbox.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/dragonbox/dragonbox.h b/include/dragonbox/dragonbox.h index 4c6d9c6..1c7bd86 100644 --- a/include/dragonbox/dragonbox.h +++ b/include/dragonbox/dragonbox.h @@ -2107,12 +2107,12 @@ namespace jkj { template static constexpr interval_type::asymmetric_boundary normal_interval(SignedSignificandBits s) noexcept { - return {!s.is_negative()}; + return {s.is_negative()}; } template static constexpr interval_type::asymmetric_boundary shorter_interval(SignedSignificandBits s) noexcept { - return {!s.is_negative()}; + return {s.is_negative()}; } } nearest_toward_minus_infinity = {}; @@ -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 = {};