Parcourir la source

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

Rich Felker il y a 12 ans
Parent
commit
0b52bf5c78
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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;
 }