diff options
author | Martynas Venckus <martynas@cvs.openbsd.org> | 2008-07-16 15:25:52 +0000 |
---|---|---|
committer | Martynas Venckus <martynas@cvs.openbsd.org> | 2008-07-16 15:25:52 +0000 |
commit | 47ab849be0f58fcb26e9c7ddc9c4c3cc8a54802f (patch) | |
tree | 2e517197a647853e7a0af3c7682b329cf9aedc73 /lib/libm/noieee_src/n_lgamma.c | |
parent | a8a8c53a2a7701bd8b02a7c64e0a60941752eb45 (diff) |
some archaic 'n = a(b), c(d)' use that confused lint
ok millert@
Diffstat (limited to 'lib/libm/noieee_src/n_lgamma.c')
-rw-r--r-- | lib/libm/noieee_src/n_lgamma.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/libm/noieee_src/n_lgamma.c b/lib/libm/noieee_src/n_lgamma.c index 06224770f41..1cf10a7c0d2 100644 --- a/lib/libm/noieee_src/n_lgamma.c +++ b/lib/libm/noieee_src/n_lgamma.c @@ -1,4 +1,4 @@ -/* $OpenBSD: n_lgamma.c,v 1.6 2008/06/21 08:26:19 martynas Exp $ */ +/* $OpenBSD: n_lgamma.c,v 1.7 2008/07/16 15:25:51 martynas Exp $ */ /*- * Copyright (c) 1992, 1993 * The Regents of the University of California. All rights reserved. @@ -156,8 +156,10 @@ lgamma(double x) } else if (x > 1e-16) return (small_lgam(x)); else if (x > -1e-16) { - if (x < 0) - signgam = -1, x = -x; + if (x < 0) { + signgam = -1; + x = -x; + } return (-log(x)); } else return (neg_lgam(x)); @@ -301,8 +303,10 @@ neg_lgam(double x) else return(infnan(ERANGE)); y = tgamma(x); - if (y < 0) - y = -y, signgam = -1; + if (y < 0) { + y = -y; + signgam = -1; + } return (log(y)); } z = floor(x + .5); |