* typeck.c (string_conv_p): Use same_type_p to check whether we
try to convert between char and wchar_t.
From-SVN: r26764
+1999-05-04 Martin von Löwis <loewis@informatik.hu-berlin.de>
+
+ * typeck.c (string_conv_p): Use same_type_p to check whether we
+ try to convert between char and wchar_t.
+
1999-05-03 Mark Mitchell <mark@codesourcery.com>
* search.c (lookup_field_r): Set the TREE_TYPE of an ambiguous
if (TREE_CODE (exp) == STRING_CST)
{
/* Make sure that we don't try to convert between char and wchar_t. */
- if (TYPE_MAIN_VARIANT (TREE_TYPE (TREE_TYPE (exp))) != t)
+ if (!same_type_p (TYPE_MAIN_VARIANT (TREE_TYPE (TREE_TYPE (exp))), t))
return 0;
}
else