diff options
author | Alan Modra <amodra@gmail.com> | 2000-07-10 15:15:01 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2000-07-10 15:15:01 +0000 |
commit | 46b85d42877315522123a8ee1a929b7d7e89bc86 (patch) | |
tree | dd282b2c93e930f7fafbd9957dbb1599c9cd7e4a /gas/hash.c | |
parent | cce41527ca1386c9658507424cee111869170997 (diff) | |
download | gdb-46b85d42877315522123a8ee1a929b7d7e89bc86.zip gdb-46b85d42877315522123a8ee1a929b7d7e89bc86.tar.gz gdb-46b85d42877315522123a8ee1a929b7d7e89bc86.tar.bz2 |
More warning fixes, and a tweak in tc-hppa.c to check constant
branch offsets a little more thoroughly.
Diffstat (limited to 'gas/hash.c')
-rw-r--r-- | gas/hash.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ /* hash.c -- gas hash table code - Copyright (C) 1987, 90, 91, 92, 93, 94, 95, 96, 98, 1999 + Copyright (C) 1987, 90, 91, 92, 93, 94, 95, 96, 98, 99, 2000 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -222,7 +222,7 @@ hash_insert (table, key, value) ++table->insertions; #endif - p = obstack_alloc (&table->memory, sizeof *p); + p = (struct hash_entry *) obstack_alloc (&table->memory, sizeof(*p)); p->string = key; p->hash = hash; p->data = value; @@ -262,7 +262,7 @@ hash_jam (table, key, value) ++table->insertions; #endif - p = obstack_alloc (&table->memory, sizeof *p); + p = (struct hash_entry *) obstack_alloc (&table->memory, sizeof(*p)); p->string = key; p->hash = hash; p->data = value; |