aboutsummaryrefslogtreecommitdiff
path: root/gcc/expmed.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2007-01-20 04:51:07 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2007-01-20 04:51:07 +0000
commit6d9c91e9f886c13a6712cd7ac17c1c2cdadcc703 (patch)
tree5bf4ae0b2313dbbd2b3c3195dcfe0c6c2c7b980d /gcc/expmed.c
parente4c9f3c21dd0075a6b1f0deb1241b7cb4b9cf944 (diff)
downloadgcc-6d9c91e9f886c13a6712cd7ac17c1c2cdadcc703.zip
gcc-6d9c91e9f886c13a6712cd7ac17c1c2cdadcc703.tar.gz
gcc-6d9c91e9f886c13a6712cd7ac17c1c2cdadcc703.tar.bz2
Cast both sides of the conditional expression.
Cast both sides of the conditional expression. Still covered by same ChangeLog entry--nothing was checked in since last change. From-SVN: r120997
Diffstat (limited to 'gcc/expmed.c')
-rw-r--r--gcc/expmed.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/expmed.c b/gcc/expmed.c
index 58b6a63..fea859a 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)