about summary refs log tree commit diff
path: root/math/s_ldexpl.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/s_ldexpl.c')
-rw-r--r--math/s_ldexpl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/math/s_ldexpl.c b/math/s_ldexpl.c
index f34c805bda..52fb093171 100644
--- a/math/s_ldexpl.c
+++ b/math/s_ldexpl.c
@@ -24,7 +24,7 @@ static char rcsid[] = "$NetBSD: $";
 
 long double __ldexpl(long double value, int exp)
 {
-	if(!isfinite(value)||value==0.0) return value;
+	if(!isfinite(value)||value==0.0) return value + value;
 	value = __scalbnl(value,exp);
 	if(!isfinite(value)||value==0.0) __set_errno (ERANGE);
 	return value;