From 0504a9ca516d0d7a35f116f9402b0c85f30ee387 Mon Sep 17 00:00:00 2001 From: Martynas Venckus Date: Sat, 9 Jul 2011 05:29:07 +0000 Subject: Make the zero condition properly raise the exception and return. --- lib/libm/src/ld128/e_lgammal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 @@ -771,6 +771,7 @@ lgammal(long double x) { if (signbit (x)) signgam = -1; + return one / fabsl (x); } if (x < 0.0L) -- cgit v1.2.3