mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-09-05 00:50:50 +02:00
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:
+1
-1
@@ -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
|
||||
|
||||
+1
-1
@@ -39,7 +39,7 @@
|
||||
/* data structures */
|
||||
extern bool SigInterruptPending;
|
||||
extern bool SigIOReady;
|
||||
extern char SigInterruptOnSigIO;
|
||||
extern signed char SigInterruptOnSigIO;
|
||||
extern bool SigGotSigWinch;
|
||||
|
||||
/* procedures */
|
||||
|
||||
Reference in New Issue
Block a user