never set errno in ldexp()

This commit is contained in:
eck 1990-11-09 16:20:49 +00:00
parent 8357c43aee
commit 899df7bc78

View file

@ -6,7 +6,6 @@
#include <math.h>
#include <float.h>
#include <errno.h>
double
ldexp(double fl, int exp)
@ -23,7 +22,6 @@ ldexp(double fl, int exp)
exp += currexp;
if (exp > 0) {
if (exp > DBL_MAX_EXP) {
errno = ERANGE;
return sign * HUGE_VAL;
}
while (exp>30) {