* cgen-dis.c (build_dis_hash_table): Fix xmalloc size computation.

This commit is contained in:
David Edelsohn 1997-04-07 19:45:47 +00:00
parent 70bb1aa163
commit 21b4ac1768
2 changed files with 3 additions and 1 deletions

View File

@ -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.

View File

@ -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));