diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2014-11-11 09:53:08 +0100 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2014-11-11 09:53:08 +0100 |
commit | e040d8a0858cebe2debfa6e9a53326a48dace9e7 (patch) | |
tree | 73ae01e6d3b12b2ce6dccdf6453f11994eb10cba /gcc/sreal.c | |
parent | 51f784f57313a0b2422f147e51ad398eb2e4536a (diff) | |
download | gcc-e040d8a0858cebe2debfa6e9a53326a48dace9e7.zip gcc-e040d8a0858cebe2debfa6e9a53326a48dace9e7.tar.gz gcc-e040d8a0858cebe2debfa6e9a53326a48dace9e7.tar.bz2 |
sreal.c (sreal::to_int): Use INTTYPE_MAXIMUM (int64_t) instead of INT64_MAX.
* sreal.c (sreal::to_int): Use INTTYPE_MAXIMUM (int64_t)
instead of INT64_MAX.
From-SVN: r217340
Diffstat (limited to 'gcc/sreal.c')
-rw-r--r-- | gcc/sreal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/sreal.c b/gcc/sreal.c index efde068..3f5456a 100644 --- a/gcc/sreal.c +++ b/gcc/sreal.c @@ -156,7 +156,7 @@ sreal::to_int () const if (m_exp <= -SREAL_BITS) return 0; if (m_exp >= SREAL_PART_BITS) - return INT64_MAX; + return INTTYPE_MAXIMUM (int64_t); if (m_exp > 0) return m_sig << m_exp; if (m_exp < 0) |