aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/c-typeck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c
index 434c9d5..3897350 100644
--- a/gcc/c-typeck.c
+++ b/gcc/c-typeck.c
@@ -4047,7 +4047,7 @@ convert_for_assignment (type, rhs, errtype, fundecl, funname, parmnum)
(coder == INTEGER_TYPE || coder == REAL_TYPE || coder == ENUMERAL_TYPE))
return convert_and_check (type, rhs);
/* Conversion to a union from its member types. */
- else if (codel = UNION_TYPE)
+ else if (codel == UNION_TYPE)
{
tree memb_types;
for (memb_types = TYPE_FIELDS (type); memb_types;