fix feholdexcept -- it needs to clear exceptions after saving environment
[musl] / src / fenv / feholdexcept.c
index 4c6da23..73ff1fa 100644 (file)
@@ -3,5 +3,6 @@
 int feholdexcept(fenv_t *envp)
 {
        fegetenv(envp);
+       feclearexcept(FE_ALL_EXCEPT);
        return 0;
 }