diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2014-12-27 15:18:05 +0000 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2014-12-27 15:18:05 +0000 |
commit | 75e6bcac2f1f113dfbca7f1ae0460497835e2fae (patch) | |
tree | 4dc15c37a92aba27958776635cace5df5f13bafe /gcc/sreal.h | |
parent | db67dfdad2007a7d9b2900001bc9278a9bfba81f (diff) | |
download | gcc-75e6bcac2f1f113dfbca7f1ae0460497835e2fae.zip gcc-75e6bcac2f1f113dfbca7f1ae0460497835e2fae.tar.gz gcc-75e6bcac2f1f113dfbca7f1ae0460497835e2fae.tar.bz2 |
* sreal.h (sreal::shift): Fix sanity check.
From-SVN: r219075
Diffstat (limited to 'gcc/sreal.h')
-rw-r--r-- | gcc/sreal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/sreal.h b/gcc/sreal.h index 2bee542..beaa5cd 100644 --- a/gcc/sreal.h +++ b/gcc/sreal.h @@ -87,8 +87,8 @@ public: /* Zero needs no shifting. */ if (!m_sig) return *this; - gcc_checking_assert (s <= SREAL_BITS); - gcc_checking_assert (s >= -SREAL_BITS); + gcc_checking_assert (s <= SREAL_MAX_EXP); + gcc_checking_assert (s >= -SREAL_MAX_EXP); /* Overflows/drop to 0 could be handled gracefully, but hopefully we do not need to do so. */ |