re PR libfortran/19302 (intrinsic_nearest.f90 fails)

PR libfortran/19302
	* intrinsics/c99_functions.c (nextafterf): Special-case infinite
	numbers.

From-SVN: r95353
This commit is contained in:
Eric Botcazou 2005-02-21 22:39:33 +01:00 committed by Eric Botcazou
parent 10e7039248
commit 7442146939
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2005-02-21 Eric Botcazou <ebotcazou@libertysurf.fr>
PR libfortran/19302
* intrinsics/c99_functions.c (nextafterf): Special-case infinite
numbers.
2005-02-21 Steven G. Kargl <kargls@comcast.net>
* io/write.c (output_float): Typo in error meesage.

View File

@ -218,6 +218,8 @@ nextafterf(float x, float y)
return x + y;
if (x == y)
return x;
if (!isfinite (x))
return x > 0 ? __FLT_MAX__ : - __FLT_MAX__;
/* absx = fabsf (x); */
absx = (x < 0.0) ? -x : x;