From e12095f26fd523d13e7cffbc87b79775ce2a6f53 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Sat, 18 Apr 2020 09:24:53 -0400 Subject: [PATCH] Revert change for floating point reps in decimal_format_seconds --- include/date/date.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/date/date.h b/include/date/date.h index 9120e1f..3d9d776 100644 --- a/include/date/date.h +++ b/include/date/date.h @@ -3732,8 +3732,7 @@ public: CONSTCD11 explicit decimal_format_seconds(const Duration& d) NOEXCEPT : s_(std::chrono::duration_cast(d)) - , sub_s_(std::chrono::treat_as_floating_point::value ? d - s_ : - std::chrono::duration_cast(d - s_)) + , sub_s_(std::chrono::duration_cast(d - s_)) {} CONSTCD14 std::chrono::seconds& seconds() NOEXCEPT {return s_;}