summaryrefslogtreecommitdiff
path: root/gcc/double-int.c
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2014-05-27 20:30:18 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2014-05-27 20:30:18 +0000
commit5692b79caf9e04153427ab7c0663509242a447be (patch)
treeca1325b4034c2c31499a10629a5a4f4c371b6f4d /gcc/double-int.c
parentdcfff6f9996e8c7b2d323c806f17325c3bbc4f4e (diff)
downloadgcc-5692b79caf9e04153427ab7c0663509242a447be.tar.gz
* double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
predicate to detect a negative quotient. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210981 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/double-int.c')
-rw-r--r--gcc/double-int.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/double-int.c b/gcc/double-int.c
index 454655d9049..f6e340bebfe 100644
--- a/gcc/double-int.c
+++ b/gcc/double-int.c
@@ -588,7 +588,7 @@ div_and_round_double (unsigned code, int uns,
== (unsigned HOST_WIDE_INT) htwice)
&& (labs_den <= ltwice)))
{
- if (*hquo < 0)
+ if (quo_neg)
/* quo = quo - 1; */
add_double (*lquo, *hquo,
(HOST_WIDE_INT) -1, (HOST_WIDE_INT) -1, lquo, hquo);