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.
This commit is contained in:
R. Timothy Edwards 2026-07-06 09:17:32 -04:00
parent dcff2f64b8
commit f7d9385c87
3 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
8.3.670
8.3.671

View File

@ -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

View File

@ -39,7 +39,7 @@
/* data structures */
extern bool SigInterruptPending;
extern bool SigIOReady;
extern char SigInterruptOnSigIO;
extern signed char SigInterruptOnSigIO;
extern bool SigGotSigWinch;
/* procedures */