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:
Ian Lance Taylor 2007-01-20 04:51:07 +00:00
parent e4c9f3c21d
commit 6d9c91e9f8
1 changed files with 3 additions and 1 deletions

View File

@ -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)