summaryrefslogtreecommitdiff
path: root/gcc/real.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2003-02-25 23:00:54 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2003-02-25 23:00:54 +0000
commit2d8a350e34aa34fc8d5f9dadc38b2c188921b880 (patch)
treeb513d54cda4f4acff87ab6f7b08ffd53a2e98571 /gcc/real.c
parent84766aa0379ecb9398c6c27cdf2fef019fac0c35 (diff)
downloadgcc-2d8a350e34aa34fc8d5f9dadc38b2c188921b880.tar.gz
* real.c (real_to_integer2): Force overflow result only for
unsigned overflow. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63421 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/real.c')
-rw-r--r--gcc/real.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/real.c b/gcc/real.c
index 369d32401fb..d04afabfe1d 100644
--- a/gcc/real.c
+++ b/gcc/real.c
@@ -1371,7 +1371,7 @@ real_to_integer2 (plow, phigh, r)
exp = r->exp;
if (exp <= 0)
goto underflow;
- if (exp >= 2*HOST_BITS_PER_WIDE_INT)
+ if (exp > 2*HOST_BITS_PER_WIDE_INT)
goto overflow;
rshift_significand (&t, r, 2*HOST_BITS_PER_WIDE_INT - exp);