fix feholdexcept -- it needs to clear exceptions after saving environment
authorRich Felker <dalias@aerifal.cx>
Sun, 18 Nov 2012 21:10:20 +0000 (16:10 -0500)
committerRich Felker <dalias@aerifal.cx>
Sun, 18 Nov 2012 21:10:20 +0000 (16:10 -0500)
src/fenv/feholdexcept.c

index 4c6da23940a2c9becab5c8422d35fd40eab8af63..73ff1fad384db91937fa819bdeba5ce6f78ff836 100644 (file)
@@ -3,5 +3,6 @@
 int feholdexcept(fenv_t *envp)
 {
        fegetenv(envp);
+       feclearexcept(FE_ALL_EXCEPT);
        return 0;
 }