1
0
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:
Bruce Mitchener
2021-01-14 00:52:53 +07:00
committed by GitHub
parent d3efbc3441
commit 62a8d400ce
2 changed files with 3 additions and 2 deletions

View File

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