summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Zimmermann <Paul.Zimmermann@inria.fr>2017-05-09 10:45:50 +0200
committerPaul Zimmermann <Paul.Zimmermann@inria.fr>2017-05-09 10:45:50 +0200
commit4c4778c54b389c7a38cbeb271afceebf8ed492e9 (patch)
treef849f1df3d6ea7ca4b14ba33d33d3077f928890d
parentf5d04977771893e941fab27b88c6aff7686df945 (diff)
downloadmpc-git-4c4778c54b389c7a38cbeb271afceebf8ed492e9.tar.gz
fixed warning found by gcc 7.1.0
-rw-r--r--src/div.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/div.c b/src/div.c
index 6edfb34..17f8876 100644
--- a/src/div.c
+++ b/src/div.c
@@ -386,8 +386,8 @@ mpc_div (mpc_ptr a, mpc_srcptr b, mpc_srcptr c, mpc_rnd_t rnd)
/* if 1/q is inexact, the approximations of the real and
imaginary part below will be inexact, unless RE(res)
or IM(res) is zero */
- inexact_re |= ~mpfr_zero_p (mpc_realref (res));
- inexact_im |= ~mpfr_zero_p (mpc_imagref (res));
+ inexact_re |= !mpfr_zero_p (mpc_realref (res));
+ inexact_im |= !mpfr_zero_p (mpc_imagref (res));
}
mpfr_clear_underflow ();
mpfr_clear_overflow ();