arf_get_mag_lower(nan) -> 0

This commit is contained in:
Fredrik Johansson 2015-04-19 05:42:29 +02:00
parent 28ba57b7da
commit 2504089ad5

View file

@ -58,7 +58,10 @@ arf_get_mag_lower(mag_t y, const arf_t x)
} }
else if (arf_is_special(x)) else if (arf_is_special(x))
{ {
mag_inf(y); if (arf_is_nan(x))
mag_zero(y);
else
mag_inf(y);
} }
else else
{ {