* c-typeck.c (qualify_type): Merge qualifiers from both types.

From-SVN: r29451
This commit is contained in:
Mark Mitchell 1999-09-16 04:16:32 +00:00 committed by Mark Mitchell
parent 24f30ed448
commit afbadaa701
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Wed Sep 15 21:20:38 1999 Mark Mitchell <mark@codesourcery.com>
* c-typeck.c (qualify_type): Merge qualifiers from both types.
1999-09-15 Brad Lucier <lucier@math.purdue.edu>
* toplev.c: Allow -f[no-]math-errno to set (clear) flag_errno_math

View File

@ -167,7 +167,8 @@ static tree
qualify_type (type, like)
tree type, like;
{
return c_build_qualified_type (type, TYPE_QUALS (like));
return c_build_qualified_type (type,
TYPE_QUALS (type) | TYPE_QUALS (like));
}
/* Return the common type of two types.