diff options
author | Patrick Palka <ppalka@redhat.com> | 2020-08-25 11:23:05 -0400 |
---|---|---|
committer | Patrick Palka <ppalka@redhat.com> | 2020-08-25 11:23:36 -0400 |
commit | 1007170df82e330e4e222a14b4c74e0c8ebba6c5 (patch) | |
tree | 0eacbc86607cb66cbef189cecbebed800f750492 /libstdc++-v3 | |
parent | 71ed3c0c9a3458998bded8e2443c0a680c2eb8cd (diff) |
libstdc++: Fix debug-mode build failure in <chrono>
libstdc++-v3/ChangeLog:
* include/std/chrono (year_month_weekday::ok): Fix assert.
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/include/std/chrono | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/std/chrono b/libstdc++-v3/include/std/chrono index bf0d7e7af76..3cc1438a7b6 100644 --- a/libstdc++-v3/include/std/chrono +++ b/libstdc++-v3/include/std/chrono @@ -2613,7 +2613,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION days __d = (_M_wdi.weekday() - chrono::weekday{sys_days{_M_y / _M_m / 1}} + days((_M_wdi.index()-1)*7 + 1)); - __glibcxx_assert(__d >= 1); + __glibcxx_assert(__d.count() >= 1); return __d.count() <= unsigned{(_M_y / _M_m / last).day()}; } |