Protect from overflow when minutes is 32 bits

This commit is contained in:
Howard Hinnant committed 2016-05-31 11:12:20 -04:00
1 parent 630d67ce0d
commit a89aab05cf
2 files changed
+5 -4

No files matched your search

+2 -2
View File
@@ -3633,7 +3633,7 @@ public:
CONSTCD14 explicit operator precision() const NOEXCEPT
{
return to24hr() + m_ + s_;
return to24hr() + s_ + m_;
}
CONSTCD14 precision to_duration() const NOEXCEPT
@@ -3714,7 +3714,7 @@ public:
CONSTCD14 explicit operator precision() const NOEXCEPT
{
return to24hr() + m_ + s_ + sub_s_;
return to24hr() + s_ + sub_s_ + m_;
}
CONSTCD14 precision to_duration() const NOEXCEPT