summaryrefslogtreecommitdiff
path: root/gnu/egcs/gcc/haifa-sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/egcs/gcc/haifa-sched.c')
-rw-r--r--gnu/egcs/gcc/haifa-sched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/egcs/gcc/haifa-sched.c b/gnu/egcs/gcc/haifa-sched.c
index d4d2121a9d5..42144769201 100644
--- a/gnu/egcs/gcc/haifa-sched.c
+++ b/gnu/egcs/gcc/haifa-sched.c
@@ -2849,7 +2849,7 @@ insn_unit (insn)
range, don't cache it. */
if (FUNCTION_UNITS_SIZE < HOST_BITS_PER_SHORT
|| unit >= 0
- || (~unit & ((1 << (HOST_BITS_PER_SHORT - 1)) - 1)) == 0)
+ || (unit & ~((1 << (HOST_BITS_PER_SHORT - 1)) - 1)) == 0)
INSN_UNIT (insn) = unit;
}
return (unit > 0 ? unit - 1 : unit);