From e715ddc63ccd6c087e6285d9983b8f63576c4b80 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 25 Nov 2025 15:52:05 -0600 Subject: [PATCH] testsuites/.../tc-timecounter-install.c: Address << of negative value This change was made to address GCC -Wshift-negative-value. Shifting a negative value is undefined in the C programming language because one's and two's complement representations give different results. Closes #5385. --- testsuites/validation/tc-timecounter-install.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuites/validation/tc-timecounter-install.c b/testsuites/validation/tc-timecounter-install.c index 14babc5b94..f100bbf640 100644 --- a/testsuites/validation/tc-timecounter-install.c +++ b/testsuites/validation/tc-timecounter-install.c @@ -353,7 +353,7 @@ static void NtpUpdateAdjustmentFaster( int64_t *adjustment, time_t *newsec ) static void NtpUpdateAdjustmentSlower( int64_t *adjustment, time_t *newsec ) { - *adjustment = -( (int64_t) 5000 ) << 32; + *adjustment = -(( (int64_t) 5000 ) << 32); (void) newsec; }