summaryrefslogtreecommitdiff
path: root/src/fenv/fesetexceptflag.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fenv/fesetexceptflag.c')
-rw-r--r--src/fenv/fesetexceptflag.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fenv/fesetexceptflag.c b/src/fenv/fesetexceptflag.c
index a68903f2..4c50a76d 100644
--- a/src/fenv/fesetexceptflag.c
+++ b/src/fenv/fesetexceptflag.c
@@ -4,9 +4,9 @@
int fesetexceptflag(const fexcept_t *flagp, int excepts)
{
SIGNAL_SAFE(0);
- ASSERT_PREV_FEXCEPT(flagp, excepts);
ASSERT_VALID_EXCEPTION_MASK(excepts);
- (void)flagp; (void)excepts;
+ ASSERT_PREV_FEXCEPT(flagp, excepts);
+ flagp->__impl->set |= excepts;
return 0;
}