diff options
author | David Edelsohn <edelsohn@gnu.org> | 2009-12-10 02:42:40 +0000 |
---|---|---|
committer | David Edelsohn <dje@gcc.gnu.org> | 2009-12-09 21:42:40 -0500 |
commit | 14aa63526a63156b1ae10de42af2730cbd7234d7 (patch) | |
tree | da9cbbf5f94c2cc38ac18711ba9c7cead407b484 /gcc/builtins.c | |
parent | 2bfaa3d848fbb79b07795cde9460871872dd7813 (diff) | |
download | gcc-14aa63526a63156b1ae10de42af2730cbd7234d7.zip gcc-14aa63526a63156b1ae10de42af2730cbd7234d7.tar.gz gcc-14aa63526a63156b1ae10de42af2730cbd7234d7.tar.bz2 |
builtins.c (do_mpc_ckconv): Pass the component type to real_from_mpfr().
* builtins.c (do_mpc_ckconv): Pass the component type to
real_from_mpfr().
From-SVN: r155122
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r-- | gcc/builtins.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c index 532a481..75a7e10 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -12726,8 +12726,8 @@ do_mpc_ckconv (mpc_srcptr m, tree type, int inexact, int force_convert) { REAL_VALUE_TYPE re, im; - real_from_mpfr (&re, mpc_realref (m), type, GMP_RNDN); - real_from_mpfr (&im, mpc_imagref (m), type, GMP_RNDN); + real_from_mpfr (&re, mpc_realref (m), TREE_TYPE (type), GMP_RNDN); + real_from_mpfr (&im, mpc_imagref (m), TREE_TYPE (type), GMP_RNDN); /* Proceed iff GCC's REAL_VALUE_TYPE can hold the MPFR values, check for overflow/underflow. If the REAL_VALUE_TYPE is zero but the mpft_t is not, then we underflowed in the |