sreal.c (sreal::to_int): Use INTTYPE_MAXIMUM (int64_t) instead of INT64_MAX.
authorUros Bizjak <ubizjak@gmail.com>
Tue, 11 Nov 2014 08:53:08 +0000 (09:53 +0100)
committerUros Bizjak <uros@gcc.gnu.org>
Tue, 11 Nov 2014 08:53:08 +0000 (09:53 +0100)
* sreal.c (sreal::to_int): Use INTTYPE_MAXIMUM (int64_t)
instead of INT64_MAX.

From-SVN: r217340

gcc/ChangeLog
gcc/sreal.c

index 1d36ec2e866941b7c74bbabaa36fd96ff3c0e40f..eac19cf30bbddcdc0e4934aa4ce5da304f5fa8eb 100644 (file)
@@ -1,3 +1,8 @@
+2014-11-11  Uros Bizjak  <ubizjak@gmail.com>
+
+       * sreal.c (sreal::to_int): Use INTTYPE_MAXIMUM (int64_t)
+       instead of INT64_MAX.
+
 2014-11-11  Tobias Burnus  <burnus@net-b.de>
 
        * doc/install.texi (Prerequisites): Remove CLooG.
index efde0680ddba408bf11365ebf7131de82fde42db..3f5456ac2e3ac8d69e594870a10e9410bd08844f 100644 (file)
@@ -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)