diff options
Diffstat (limited to 'gcc/c-typeck.c')
-rw-r--r-- | gcc/c-typeck.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index f2a60db8161..909edbe6a37 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -917,7 +917,7 @@ comptypes_internal (const_tree type1, const_tree type2) /* Qualifiers must match. C99 6.7.3p9 */ - if (TYPE_QUALS (t1) != TYPE_QUALS (t2)) + if (TYPE_QUALS (CONST_CAST_TREE (t1)) != TYPE_QUALS (CONST_CAST_TREE (t2))) return 0; /* Allow for two different type nodes which have essentially the same |