From: eck Date: Mon, 9 Apr 1990 16:54:09 +0000 (+0000) Subject: changed over/underflow for exp() X-Git-Tag: release-5-5~1748 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=8c9149b0587f8c04334b01cd8edb9e17eec1e074;p=ack.git changed over/underflow for exp() --- diff --git a/lang/cem/libcc.ansi/math/exp.c b/lang/cem/libcc.ansi/math/exp.c index 11a3ab693..d416fea75 100644 --- a/lang/cem/libcc.ansi/math/exp.c +++ b/lang/cem/libcc.ansi/math/exp.c @@ -36,12 +36,12 @@ exp(double x) int n; int negative = x < 0; - if (x <= M_LN_MIN_D) { - if (x < M_LN_MIN_D) errno = ERANGE; + if (x < M_LN_MIN_D) { + errno = ERANGE; return 0.0; } - if (x >= M_LN_MAX_D) { - if (x > M_LN_MAX_D) errno = ERANGE; + if (x > M_LN_MAX_D) { + errno = ERANGE; return HUGE_VAL; }