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
This commit is contained in:
Uros Bizjak 2014-11-11 09:53:08 +01:00 committed by Uros Bizjak
parent 51f784f573
commit e040d8a085
2 changed files with 6 additions and 1 deletions

View 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.

View 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)