Use numext::abs instead of abs to avoid incorrect conversion to integer of the argument

This commit is contained in:
Benoit Steiner 2016-03-23 16:57:12 -07:00
parent 41434a8a85
commit 2e4e4cb74d

View File

@ -576,7 +576,7 @@ struct igammac_impl {
pkm1 = pk;
qkm2 = qkm1;
qkm1 = qk;
if (abs(pk) > big) {
if (numext::abs(pk) > big) {
pkm2 *= biginv;
pkm1 *= biginv;
qkm2 *= biginv;