Commit abf3bf38 by Jim Wilson

(add_eh_table_entry): Multiply realloc size by sizeof int.

From-SVN: r12678
parent d8b79470
...@@ -631,7 +631,8 @@ add_eh_table_entry (n) ...@@ -631,7 +631,8 @@ add_eh_table_entry (n)
if (eh_table_max_size < 0) if (eh_table_max_size < 0)
abort (); abort ();
if ((eh_table = (int *) realloc (eh_table, eh_table_max_size)) if ((eh_table = (int *) realloc (eh_table,
eh_table_max_size * sizeof (int)))
== 0) == 0)
fatal ("virtual memory exhausted"); fatal ("virtual memory exhausted");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment