mirror of
https://github.com/Interlisp/maiko.git
synced 2026-01-27 12:22:24 +00:00
Use sig_atomic_t for FP_error when using FP exceptions. (#220)
`sig_atomic_t` is usually `int`, but is the typedef that one should use for flags written to from a signal handler.
This commit is contained in:
@@ -644,7 +644,7 @@ void int_unblock() {
|
||||
/************************************************************************/
|
||||
|
||||
/* The global used to signal floating-point errors */
|
||||
volatile int FP_error = 0;
|
||||
volatile sig_atomic_t FP_error = 0;
|
||||
|
||||
void int_fp_service(int sig, siginfo_t *info, void *context)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user