* cgen-dis.c (build_dis_hash_table): Fix xmalloc size computation.
This commit is contained in:
parent
70bb1aa163
commit
21b4ac1768
@ -1,5 +1,7 @@
|
||||
Mon Apr 7 11:45:44 1997 Doug Evans <dje@canuck.cygnus.com>
|
||||
|
||||
* cgen-dis.c (build_dis_hash_table): Fix xmalloc size computation.
|
||||
|
||||
* cgen-opc.c (hash_keyword_name): Improve algorithm.
|
||||
|
||||
* disassemble.c (disassembler): Handle m32r.
|
||||
|
@ -70,7 +70,7 @@ build_dis_hash_table ()
|
||||
|
||||
dis_hash_table = (CGEN_INSN_LIST **)
|
||||
xmalloc (hash_size * sizeof (CGEN_INSN_LIST *)
|
||||
+ count * sizeof (CGEN_INSN_LIST *));
|
||||
+ count * sizeof (CGEN_INSN_LIST));
|
||||
memset (dis_hash_table, 0,
|
||||
hash_size * sizeof (CGEN_INSN_LIST *)
|
||||
+ count * sizeof (CGEN_INSN_LIST));
|
||||
|
Loading…
Reference in New Issue
Block a user