From afeb3fd1e8afdcd480622f92df71f07e88dcf95f Mon Sep 17 00:00:00 2001 From: uros Date: Tue, 11 Nov 2014 08:53:08 +0000 Subject: [PATCH] * sreal.c (sreal::to_int): Use INTTYPE_MAXIMUM (int64_t) instead of INT64_MAX. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217340 138bc75d-0d04-0410-961f-82ee72b054a4 --- 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.11.4.GIT