aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpphash.c
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.demon.co.uk>2001-05-30 21:09:15 +0000
committerNeil Booth <neil@gcc.gnu.org>2001-05-30 21:09:15 +0000
commitf278806b976e638c29307598c496f59b1047f4fa (patch)
tree2da38a0f256e481be6297f43f2322f901b7c0a45 /gcc/cpphash.c
parent42a9e4e4718d3811d94471fddb6ce9c9197c30b9 (diff)
downloadgcc-f278806b976e638c29307598c496f59b1047f4fa.zip
gcc-f278806b976e638c29307598c496f59b1047f4fa.tar.gz
gcc-f278806b976e638c29307598c496f59b1047f4fa.tar.bz2
* cpphash.c (alloc_node): Cast pointer.
From-SVN: r42720
Diffstat (limited to 'gcc/cpphash.c')
-rw-r--r--gcc/cpphash.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cpphash.c b/gcc/cpphash.c
index 9383c27..9e15ab4 100644
--- a/gcc/cpphash.c
+++ b/gcc/cpphash.c
@@ -39,7 +39,8 @@ alloc_node (table)
{
cpp_hashnode *node;
- node = obstack_alloc (&table->pfile->hash_ob, sizeof (cpp_hashnode));
+ node = (cpp_hashnode *) obstack_alloc (&table->pfile->hash_ob,
+ sizeof (cpp_hashnode));
memset ((PTR) node, 0, sizeof (cpp_hashnode));
return node;
}