projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef9d910
)
(signed_or_unsigned_type): If already right signedness, return.
author
Richard Kenner
<kenner@gcc.gnu.org>
Mon, 28 Oct 1996 22:17:00 +0000
(17:17 -0500)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Mon, 28 Oct 1996 22:17:00 +0000
(17:17 -0500)
From-SVN: r13055
gcc/c-typeck.c
patch
|
blob
|
history
diff --git
a/gcc/c-typeck.c
b/gcc/c-typeck.c
index 7014040c7ce41d1878d719e3cc23ff503c1d9e45..fa647dbce603e5757bd1d734247cc9348be7cd86 100644
(file)
--- a/
gcc/c-typeck.c
+++ b/
gcc/c-typeck.c
@@
-776,7
+776,8
@@
signed_or_unsigned_type (unsignedp, type)
int unsignedp;
tree type;
{
- if (! INTEGRAL_TYPE_P (type))
+ if (! INTEGRAL_TYPE_P (type)
+ || TREE_UNSIGNED (type) == unsignedp)
return type;
if (TYPE_PRECISION (type) == TYPE_PRECISION (signed_char_type_node))
return unsignedp ? unsigned_char_type_node : signed_char_type_node;