From e040d8a0858cebe2debfa6e9a53326a48dace9e7 Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Tue, 11 Nov 2014 09:53:08 +0100 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/sreal.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1d36ec2e866..eac19cf30bb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-11-11 Uros Bizjak + + * sreal.c (sreal::to_int): Use INTTYPE_MAXIMUM (int64_t) + instead of INT64_MAX. + 2014-11-11 Tobias Burnus * doc/install.texi (Prerequisites): Remove CLooG. diff --git a/gcc/sreal.c b/gcc/sreal.c index efde0680ddb..3f5456ac2e3 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) -- 2.30.2