aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2004-08-25 19:23:11 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2004-08-25 19:23:11 +0000
commit837869a5bd0279f0f6ce2a1b529c539ce70e7bd6 (patch)
treef70fd1fa357d476d07ce672cb9ae82992934d6b6 /gcc
parente5f14571a8c82e5a3a627e40a480c62e504d9f1e (diff)
downloadgcc-837869a5bd0279f0f6ce2a1b529c539ce70e7bd6.zip
gcc-837869a5bd0279f0f6ce2a1b529c539ce70e7bd6.tar.gz
gcc-837869a5bd0279f0f6ce2a1b529c539ce70e7bd6.tar.bz2
* mangle.c (get_identifier_nocopy): Add cast.
From-SVN: r86567
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog2
-rw-r--r--gcc/cp/mangle.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 4c43dce..3b5498e 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,5 +1,7 @@
2004-08-25 Mark Mitchell <mark@codesourcery.com>
+ * mangle.c (get_identifier_nocopy): Add cast.
+
* cp-tree.h (mangle_type): Remove.
* mangle.c (globals): GTY it.
(mangle_obstack): New variable.
diff --git a/gcc/cp/mangle.c b/gcc/cp/mangle.c
index b491fcc..8405a5d 100644
--- a/gcc/cp/mangle.c
+++ b/gcc/cp/mangle.c
@@ -2491,7 +2491,7 @@ mangle_decl_string (const tree decl)
static inline tree
get_identifier_nocopy (const char *name)
{
- hashnode ht_node = ht_lookup (ident_hash, name,
+ hashnode ht_node = ht_lookup (ident_hash, (const unsigned char *) name,
strlen (name), HT_ALLOCED);
return HT_IDENT_TO_GCC_IDENT (ht_node);
}