diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2014-05-27 20:30:18 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2014-05-27 20:30:18 +0000 |
commit | 5e67547dd5464761a3ed35c6e59fa231c8197740 (patch) | |
tree | ca1325b4034c2c31499a10629a5a4f4c371b6f4d /gcc/double-int.c | |
parent | 5c1bc275f4f85f2483fb2433b1592deeba1e3d6f (diff) | |
download | gcc-5e67547dd5464761a3ed35c6e59fa231c8197740.zip gcc-5e67547dd5464761a3ed35c6e59fa231c8197740.tar.gz gcc-5e67547dd5464761a3ed35c6e59fa231c8197740.tar.bz2 |
double-int.c (div_and_round_double): Use the proper predicate to detect a negative quotient.
* double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
predicate to detect a negative quotient.
From-SVN: r210981
Diffstat (limited to 'gcc/double-int.c')
-rw-r--r-- | gcc/double-int.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/double-int.c b/gcc/double-int.c index 454655d..f6e340b 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); |