From 3f5193c2f05a1c16f9d2745af12a8ecd42b62ea9 Mon Sep 17 00:00:00 2001 From: eck Date: Fri, 9 Nov 1990 16:20:49 +0000 Subject: [PATCH] never set errno in ldexp() --- lang/cem/libcc.ansi/math/ldexp.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lang/cem/libcc.ansi/math/ldexp.c b/lang/cem/libcc.ansi/math/ldexp.c index 5ec83a8f..dd704df9 100644 --- a/lang/cem/libcc.ansi/math/ldexp.c +++ b/lang/cem/libcc.ansi/math/ldexp.c @@ -6,7 +6,6 @@ #include #include -#include 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) {