summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-11-18 16:10:20 -0500
committerRich Felker <dalias@aerifal.cx>2012-11-18 16:10:20 -0500
commit0b52bf5c78435f3af4e0c1cbbe4177861e599847 (patch)
tree9665cd5e4796eefd6051c8781805e598bbc31a22
parent19b1a8453e9d329a16711900a84797c5f1333208 (diff)
downloadmusl-0b52bf5c78435f3af4e0c1cbbe4177861e599847.tar.gz
musl-0b52bf5c78435f3af4e0c1cbbe4177861e599847.tar.bz2
musl-0b52bf5c78435f3af4e0c1cbbe4177861e599847.tar.xz
musl-0b52bf5c78435f3af4e0c1cbbe4177861e599847.zip
fix feholdexcept -- it needs to clear exceptions after saving environment
-rw-r--r--src/fenv/feholdexcept.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fenv/feholdexcept.c b/src/fenv/feholdexcept.c
index 4c6da239..73ff1fad 100644
--- a/src/fenv/feholdexcept.c
+++ b/src/fenv/feholdexcept.c
@@ -3,5 +3,6 @@
int feholdexcept(fenv_t *envp)
{
fegetenv(envp);
+ feclearexcept(FE_ALL_EXCEPT);
return 0;
}