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:
parent
51f784f573
commit
e040d8a085
@ -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.
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user