aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1994-04-28 16:06:33 -0700
committerJim Wilson <wilson@gcc.gnu.org>1994-04-28 16:06:33 -0700
commite9a042b6a1bdbfc930e2054e4257f1cbdb3b7790 (patch)
tree9de1a4ee3d5dc6d85396dfcf6868f66dcdfd8445 /gcc
parent3375e6626aac6c2b3cd434026b6930561d5ae11a (diff)
downloadgcc-e9a042b6a1bdbfc930e2054e4257f1cbdb3b7790.zip
gcc-e9a042b6a1bdbfc930e2054e4257f1cbdb3b7790.tar.gz
gcc-e9a042b6a1bdbfc930e2054e4257f1cbdb3b7790.tar.bz2
(expand_end_case): Correct test for sign extending
unsigned constant index when creating index_expr. From-SVN: r7175
Diffstat (limited to 'gcc')
-rw-r--r--gcc/stmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/stmt.c b/gcc/stmt.c
index a6b708f..d837426 100644
--- a/gcc/stmt.c
+++ b/gcc/stmt.c
@@ -4382,7 +4382,7 @@ expand_end_case (orig_index)
{
index_expr
= build_int_2 (INTVAL (index),
- !unsignedp && INTVAL (index) >= 0 ? 0 : -1);
+ unsignedp || INTVAL (index) >= 0 ? 0 : -1);
index_expr = convert (TREE_TYPE (index_expr), index_expr);
}