projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4c9f3c
)
Cast both sides of the conditional expression.
author
Ian Lance Taylor
<ian@gcc.gnu.org>
Sat, 20 Jan 2007 04:51:07 +0000
(
04:51
+0000)
committer
Ian Lance Taylor
<ian@gcc.gnu.org>
Sat, 20 Jan 2007 04:51:07 +0000
(
04:51
+0000)
Cast both sides of the conditional expression. Still covered by same
ChangeLog entry--nothing was checked in since last change.
From-SVN: r120997
gcc/expmed.c
patch
|
blob
|
history
diff --git
a/gcc/expmed.c
b/gcc/expmed.c
index 58b6a635a6a49ce2fa642f3eee73912e1b398ebd..fea859a18c1edb0b1b346a139a1096a230d1499f 100644
(file)
--- 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)