https://gcc.gnu.org/g:754da29afd63cd079ee0921fab346bc212dd0fe7

commit r17-502-g754da29afd63cd079ee0921fab346bc212dd0fe7
Author: Jonathan Wakely <[email protected]>
Date:   Tue May 12 17:14:26 2026 +0100

    libstdc++: Fix -Wsign-compare warning in new test
    
    libstdc++-v3/ChangeLog:
    
            * testsuite/std/time/clock/utc/leap_second_info-2.cc: Fix sign
            compare warning. Tweak comment.

Diff:
---
 libstdc++-v3/testsuite/std/time/clock/utc/leap_second_info-2.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libstdc++-v3/testsuite/std/time/clock/utc/leap_second_info-2.cc 
b/libstdc++-v3/testsuite/std/time/clock/utc/leap_second_info-2.cc
index 090a28291c85..59634b34944f 100644
--- a/libstdc++-v3/testsuite/std/time/clock/utc/leap_second_info-2.cc
+++ b/libstdc++-v3/testsuite/std/time/clock/utc/leap_second_info-2.cc
@@ -52,7 +52,7 @@ test_future_leaps()
   std::ofstream("leapseconds") << "";
 
   using std::chrono::years;
-  auto s = std::chrono::utc_seconds(1483228826s + years(100)); // 1 Jan 2117
+  auto s = std::chrono::utc_seconds(1483228826s + years(100)); // 2117
   auto lsi = get_leap_second_info(s);
   VERIFY( override_used ); // If this fails then XFAIL for the target.
   VERIFY( lsi.is_leap_second == false );
@@ -91,7 +91,7 @@ Leap  2120    Dec     30      23:59:59        -       S
   // The file was not read again:
   VERIFY( ! override_used );
   // The list in the tzdb contains the three fake leap seconds:
-  VERIFY( tzdb.leap_seconds.size() == hardcoded_count.count() + 3 );
+  VERIFY( tzdb.leap_seconds.size() == size_t(hardcoded_count.count() + 3) );
   // And repeating the queries above gives the same results:
   lsi = get_leap_second_info(s);
   VERIFY( lsi.is_leap_second == false );

Reply via email to