aboutsummaryrefslogtreecommitdiff
path: root/math/s_ldexpf.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/s_ldexpf.c')
-rw-r--r--math/s_ldexpf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/math/s_ldexpf.c b/math/s_ldexpf.c
index 37af88004f..b83062fe35 100644
--- a/math/s_ldexpf.c
+++ b/math/s_ldexpf.c
@@ -23,7 +23,7 @@ static char rcsid[] = "$NetBSD: s_ldexpf.c,v 1.3 1995/05/10 20:47:42 jtc Exp $";
float __ldexpf(float value, int exp)
{
- if(!isfinite(value)||value==(float)0.0) return value;
+ if(!isfinite(value)||value==(float)0.0) return value + value;
value = __scalbnf(value,exp);
if(!isfinite(value)||value==(float)0.0) __set_errno (ERANGE);
return value;