From 899df7bc78efcfe29fffb25d55c7e36fdfdd6439 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 5ec83a8fd..dd704df99 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) { -- 2.34.1