From 2c122bcc493c58bb5d2c035850096fb323560411 Mon Sep 17 00:00:00 2001 From: Fredrik Johansson Date: Wed, 11 May 2016 20:12:27 +0200 Subject: [PATCH] fix a very silly bug in pfq_choose_n resulting in near-integers not being properly skipped in some cases --- acb_hypgeom/pfq_choose_n.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acb_hypgeom/pfq_choose_n.c b/acb_hypgeom/pfq_choose_n.c index e50f1260..fde5cd56 100644 --- a/acb_hypgeom/pfq_choose_n.c +++ b/acb_hypgeom/pfq_choose_n.c @@ -13,7 +13,7 @@ double mag_get_log2_d_approx(const mag_t x); -#define D_ABS(x) ((x) < 0.0 ? (-x) : (x)) +#define D_ABS(x) ((x) < 0.0 ? (-(x)) : (x)) int acb_hypgeom_pfq_choose_n_double(slong * nn,