From f7d9385c8761606e2819eb38a9697dffe5669eac Mon Sep 17 00:00:00 2001 From: "R. Timothy Edwards" Date: Mon, 6 Jul 2026 09:17:32 -0400 Subject: [PATCH] Corrected the "char" casting of SigInterruptOnSigIO, which (1) must be able to hold the value -1, and (2) defaults to "unsigned char" on some systems. Explicitly casting this as "signed char" should avoid the problem. --- VERSION | 2 +- utils/signals.c | 2 +- utils/signals.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index f109455d..5c92172e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -8.3.670 +8.3.671 diff --git a/utils/signals.c b/utils/signals.c index 482c4906..d99a7057 100644 --- a/utils/signals.c +++ b/utils/signals.c @@ -92,7 +92,7 @@ global bool SigIOReady = FALSE; /* If set to 1, we will set SigInterruptPending whenever we set SigIOReady. */ /* If set to -1, then SigInterruptPending is never set */ -global char SigInterruptOnSigIO; +global signed char SigInterruptOnSigIO; /* * Set to true when we recieve a SIGWINCH/SIGWINDOW signal diff --git a/utils/signals.h b/utils/signals.h index 58b7e2dd..c339542f 100644 --- a/utils/signals.h +++ b/utils/signals.h @@ -39,7 +39,7 @@ /* data structures */ extern bool SigInterruptPending; extern bool SigIOReady; -extern char SigInterruptOnSigIO; +extern signed char SigInterruptOnSigIO; extern bool SigGotSigWinch; /* procedures */