projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3375e66
)
(expand_end_case): Correct test for sign extending
author
Jim Wilson
<wilson@gcc.gnu.org>
Thu, 28 Apr 1994 23:06:33 +0000
(16:06 -0700)
committer
Jim Wilson
<wilson@gcc.gnu.org>
Thu, 28 Apr 1994 23:06:33 +0000
(16:06 -0700)
unsigned constant index when creating index_expr.
From-SVN: r7175
gcc/stmt.c
patch
|
blob
|
history
diff --git
a/gcc/stmt.c
b/gcc/stmt.c
index a6b708fa48fd72e1dbb71f5beafb4b647676bca5..d83742648d307a1b6ef22126d4186b64d6694a03 100644
(file)
--- 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);
}