mirror of
https://github.com/HowardHinnant/date.git
synced 2024-12-27 00:14:07 +08:00
Revert change for floating point reps in decimal_format_seconds
This commit is contained in:
parent
7d811743e0
commit
e12095f26f
@ -3732,8 +3732,7 @@ public:
|
|||||||
|
|
||||||
CONSTCD11 explicit decimal_format_seconds(const Duration& d) NOEXCEPT
|
CONSTCD11 explicit decimal_format_seconds(const Duration& d) NOEXCEPT
|
||||||
: s_(std::chrono::duration_cast<std::chrono::seconds>(d))
|
: s_(std::chrono::duration_cast<std::chrono::seconds>(d))
|
||||||
, sub_s_(std::chrono::treat_as_floating_point<rep>::value ? d - s_ :
|
, sub_s_(std::chrono::duration_cast<precision>(d - s_))
|
||||||
std::chrono::duration_cast<precision>(d - s_))
|
|
||||||
{}
|
{}
|
||||||
|
|
||||||
CONSTCD14 std::chrono::seconds& seconds() NOEXCEPT {return s_;}
|
CONSTCD14 std::chrono::seconds& seconds() NOEXCEPT {return s_;}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user