diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-01-20 04:51:07 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-01-20 04:51:07 +0000 |
commit | 34f60736c1d1ea3c27532c49421983d8852289e0 (patch) | |
tree | 5bf4ae0b2313dbbd2b3c3195dcfe0c6c2c7b980d /gcc/expmed.c | |
parent | f74f4e04a6a5bb91924147720fd36921df06fa75 (diff) | |
download | gcc-34f60736c1d1ea3c27532c49421983d8852289e0.tar.gz |
Cast both sides of the conditional expression. Still covered by same
ChangeLog entry--nothing was checked in since last change.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120997 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/expmed.c')
-rw-r--r-- | gcc/expmed.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/expmed.c b/gcc/expmed.c index 58b6a635a6a..fea859a18c1 100644 --- a/gcc/expmed.c +++ b/gcc/expmed.c @@ -4176,7 +4176,9 @@ expand_divmod (int rem_flag, enum tree_code code, enum machine_mode mode, HOST_WIDE_INT d = INTVAL (op1); unsigned HOST_WIDE_INT abs_d; - abs_d = d >= 0 ? d : - (unsigned HOST_WIDE_INT) d; + abs_d = (d >= 0 + ? (unsigned HOST_WIDE_INT) d + : - (unsigned HOST_WIDE_INT) d); /* n rem d = n rem -d */ if (rem_flag && d < 0) |