summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartynas Venckus <martynas@cvs.openbsd.org>2011-07-09 05:29:07 +0000
committerMartynas Venckus <martynas@cvs.openbsd.org>2011-07-09 05:29:07 +0000
commit0504a9ca516d0d7a35f116f9402b0c85f30ee387 (patch)
tree6be6ed19985ba4ce68641e8ceaf266d7836b0092
parent5b51e5edfb78d8cdb892e301a9479f02678cf8d5 (diff)
Make the zero condition properly raise the exception and return.
-rw-r--r--lib/libm/src/ld128/e_lgammal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libm/src/ld128/e_lgammal.c b/lib/libm/src/ld128/e_lgammal.c
index d2579d806b0..5af2057355e 100644
--- a/lib/libm/src/ld128/e_lgammal.c
+++ b/lib/libm/src/ld128/e_lgammal.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: e_lgammal.c,v 1.2 2011/07/08 17:22:17 martynas Exp $ */
+/* $OpenBSD: e_lgammal.c,v 1.3 2011/07/09 05:29:06 martynas Exp $ */
/*
* Copyright (c) 2008 Stephen L. Moshier <steve@moshier.net>
@@ -771,6 +771,7 @@ lgammal(long double x)
{
if (signbit (x))
signgam = -1;
+ return one / fabsl (x);
}
if (x < 0.0L)