* c-typeck.c (qualify_type): Merge qualifiers from both types.
From-SVN: r29451
This commit is contained in:
parent
24f30ed448
commit
afbadaa701
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue