From 6ef51ae2882c2e7beff22e8f6dd43988be83c6eb Mon Sep 17 00:00:00 2001 From: svenha Date: Tue, 3 Feb 2026 19:33:03 +0000 Subject: [PATCH] gmtoff: adjust variable type The problem is that the incorrect type will lead to the result 1 (in gcc-13 and older) and to the result (in gcc-14 and newer). --- autoconf/gmtoff | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoconf/gmtoff b/autoconf/gmtoff index 991b4b4ad..b897a18b8 100755 --- a/autoconf/gmtoff +++ b/autoconf/gmtoff @@ -55,7 +55,7 @@ cat > $file.c < int main( int argc, char *argv[] ) { - long s = time( 0 ); + time_t s = time( 0 ); struct tm *tm = localtime( &s ); return tm->tm_gmtoff - tm->tm_gmtoff;