diff options
author | Jim Wilson <wilson@gcc.gnu.org> | 1994-04-28 16:06:33 -0700 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1994-04-28 16:06:33 -0700 |
commit | e9a042b6a1bdbfc930e2054e4257f1cbdb3b7790 (patch) | |
tree | 9de1a4ee3d5dc6d85396dfcf6868f66dcdfd8445 /gcc | |
parent | 3375e6626aac6c2b3cd434026b6930561d5ae11a (diff) | |
download | gcc-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |