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
This commit is contained in:
parent
e4c9f3c21d
commit
6d9c91e9f8
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue