summaryrefslogtreecommitdiff
path: root/gcc/sreal.c
diff options
context:
space:
mode:
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2014-11-11 08:53:08 +0000
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2014-11-11 08:53:08 +0000
commitafeb3fd1e8afdcd480622f92df71f07e88dcf95f (patch)
tree73ae01e6d3b12b2ce6dccdf6453f11994eb10cba /gcc/sreal.c
parent69ec49d1991a0ea8b339917182af77b721c955d6 (diff)
downloadgcc-afeb3fd1e8afdcd480622f92df71f07e88dcf95f.tar.gz
* 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
Diffstat (limited to 'gcc/sreal.c')
-rw-r--r--gcc/sreal.c2
1 files changed, 1 insertions, 1 deletions
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)