diff options
Diffstat (limited to 'src/neg.c')
-rw-r--r-- | src/neg.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -29,6 +29,7 @@ mpfr_neg (mpfr_ptr a, mpfr_srcptr b, mpfr_rnd_t rnd_mode) return mpfr_set4 (a, b, rnd_mode, -MPFR_SIGN(b)); else if (MPFR_UNLIKELY(MPFR_IS_NAN (b))) { + MPFR_SET_OPPOSITE_SIGN(a,b); MPFR_RET_NAN; } else |