summaryrefslogtreecommitdiff
path: root/libcpp/symtab.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcpp/symtab.c')
-rw-r--r--libcpp/symtab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpp/symtab.c b/libcpp/symtab.c
index 086d775d599..48a5338b1f8 100644
--- a/libcpp/symtab.c
+++ b/libcpp/symtab.c
@@ -163,7 +163,7 @@ ht_lookup_with_hash (hash_table *table, const unsigned char *str,
if (table->alloc_subobject)
{
- char *chars = table->alloc_subobject (len + 1);
+ char *chars = (char *) table->alloc_subobject (len + 1);
memcpy (chars, str, len);
chars[len] = '\0';
HT_STR (node) = (const unsigned char *) chars;