From 6ad3493e2247e6cb3c9e086e8cb1f8b51a5f27d6 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 27 Apr 2012 13:54:09 +0000 Subject: Fix fenv.h fallback returns (bug 14027). --- math/fsetexcptflg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'math/fsetexcptflg.c') diff --git a/math/fsetexcptflg.c b/math/fsetexcptflg.c index 3f6ac9893b..7d27d7f226 100644 --- a/math/fsetexcptflg.c +++ b/math/fsetexcptflg.c @@ -1,5 +1,5 @@ /* Set floating-point environment exception handling. - Copyright (C) 1997, 1999, 2000 Free Software Foundation, Inc. + Copyright (C) 1997-2012 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1997. @@ -23,8 +23,8 @@ int __fesetexceptflag (const fexcept_t *flagp, int excepts) { - /* This always fails. */ - return 1; + /* This always fails unless nothing needs to be done. */ + return (excepts != 0); } #if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_2) strong_alias (__fesetexceptflag, __old_fesetexceptflag) -- cgit 1.4.1