diff options
Diffstat (limited to 'gcc/sreal.c')
-rw-r--r-- | gcc/sreal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/sreal.c b/gcc/sreal.c index 82ebcb8..622fc2d 100644 --- a/gcc/sreal.c +++ b/gcc/sreal.c @@ -58,7 +58,7 @@ along with GCC; see the file COPYING3. If not see void sreal::dump (FILE *file) const { - fprintf (file, "(%" PRIu64 " * 2^%d)", m_sig, m_exp); + fprintf (file, "(%" PRIi64 " * 2^%d)", m_sig, m_exp); } DEBUG_FUNCTION void @@ -122,7 +122,7 @@ sreal::to_double () const { double val = m_sig; if (m_exp) - val *= exp2 (m_exp); + val = scalbln (val, m_exp); return val; } |