diff options
Diffstat (limited to 'math/fsetexcptflg.c')
-rw-r--r-- | math/fsetexcptflg.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/math/fsetexcptflg.c b/math/fsetexcptflg.c index 2e8237e..e79095b 100644 --- a/math/fsetexcptflg.c +++ b/math/fsetexcptflg.c @@ -23,8 +23,9 @@ int __fesetexceptflag (const fexcept_t *flagp, int excepts) { - /* This always fails unless nothing needs to be done. */ - return (excepts != 0); + /* This always succeeds, as all exceptions are always clear + (including in the saved state) so nothing needs to be done. */ + return 0; } #if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_2) strong_alias (__fesetexceptflag, __old_fesetexceptflag) |