Browse Source

fix feholdexcept -- it needs to clear exceptions after saving environment

Rich Felker 12 years ago
parent
commit
0b52bf5c78
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/fenv/feholdexcept.c

+ 1 - 0
src/fenv/feholdexcept.c

@@ -3,5 +3,6 @@
 int feholdexcept(fenv_t *envp)
 {
 	fegetenv(envp);
+	feclearexcept(FE_ALL_EXCEPT);
 	return 0;
 }