From 6d9c91e9f886c13a6712cd7ac17c1c2cdadcc703 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sat, 20 Jan 2007 04:51:07 +0000 Subject: [PATCH] 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 --- gcc/expmed.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.30.2