From: Jim Wilson Date: Thu, 28 Apr 1994 23:06:33 +0000 (-0700) Subject: (expand_end_case): Correct test for sign extending X-Git-Tag: misc/cutover-egcs-0~6768 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9a042b6a1bdbfc930e2054e4257f1cbdb3b7790;p=thirdparty%2Fgcc.git (expand_end_case): Correct test for sign extending unsigned constant index when creating index_expr. From-SVN: r7175 --- diff --git a/gcc/stmt.c b/gcc/stmt.c index a6b708fa48fd..d83742648d30 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); }