mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-23 19:03:59 +08:00
libstdc++: Fix debug-mode build failure in <chrono>
libstdc++-v3/ChangeLog: * include/std/chrono (year_month_weekday::ok): Fix assert.
This commit is contained in:
parent
71ed3c0c9a
commit
1007170df8
@ -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()};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user