public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/c++-modules] libstdc++: Fix debug-mode build failure in <chrono>
@ 2020-08-28 16:03 Nathan Sidwell
  0 siblings, 0 replies; only message in thread
From: Nathan Sidwell @ 2020-08-28 16:03 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:1007170df82e330e4e222a14b4c74e0c8ebba6c5

commit 1007170df82e330e4e222a14b4c74e0c8ebba6c5
Author: Patrick Palka <ppalka@redhat.com>
Date:   Tue Aug 25 11:23:05 2020 -0400

    libstdc++: Fix debug-mode build failure in <chrono>
    
    libstdc++-v3/ChangeLog:
    
            * include/std/chrono (year_month_weekday::ok): Fix assert.

Diff:
---
 libstdc++-v3/include/std/chrono | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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()};
       }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-28 16:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-28 16:03 [gcc/devel/c++-modules] libstdc++: Fix debug-mode build failure in <chrono> Nathan Sidwell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).