Fix typo in acb_real_abs leading to wrong results for some values

This commit is contained in:
Joel Dahne 2020-10-09 14:47:38 +02:00
parent d1d510efb3
commit 480511ea08

View file

@ -32,7 +32,7 @@ acb_real_abs(acb_t res, const acb_t z, int analytic, slong prec)
{
acb_t t;
acb_init(t);
acb_neg(t, res);
acb_neg(t, z);
acb_union(res, z, t, prec);
acb_clear(t);
}