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:
parent
dcff2f64b8
commit
f7d9385c87
|
|
@ -92,7 +92,7 @@ global bool SigIOReady = FALSE;
|
||||||
|
|
||||||
/* If set to 1, we will set SigInterruptPending whenever we set SigIOReady. */
|
/* If set to 1, we will set SigInterruptPending whenever we set SigIOReady. */
|
||||||
/* If set to -1, then SigInterruptPending is never set */
|
/* 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
|
* Set to true when we recieve a SIGWINCH/SIGWINDOW signal
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@
|
||||||
/* data structures */
|
/* data structures */
|
||||||
extern bool SigInterruptPending;
|
extern bool SigInterruptPending;
|
||||||
extern bool SigIOReady;
|
extern bool SigIOReady;
|
||||||
extern char SigInterruptOnSigIO;
|
extern signed char SigInterruptOnSigIO;
|
||||||
extern bool SigGotSigWinch;
|
extern bool SigGotSigWinch;
|
||||||
|
|
||||||
/* procedures */
|
/* procedures */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue