Commit e06e4d45 by Jeffrey A Law Committed by Jeff Law

method.c (check_btype): Add missing argument to xrealloc.

        * method.c (check_btype): Add missing argument to xrealloc.
        (check_ktype): Likewise.

From-SVN: r18998
parent 39bdfaa0
Sat Apr 4 12:52:35 1998 Jeffrey A Law (law@cygnus.com)
* method.c (check_btype): Add missing argument to xrealloc.
(check_ktype): Likewise.
Fri Apr 3 02:22:59 1998 Jason Merrill <jason@yorick.cygnus.com>
Implement empty base optimization.
......
......@@ -377,7 +377,7 @@ check_ktype (node, add)
if (maxksize <= maxktype)
{
maxksize = maxksize* 3 / 2;
ktypelist = (tree *)xrealloc (sizeof (tree) * maxksize);
ktypelist = (tree *)xrealloc (ktypelist, sizeof (tree) * maxksize);
}
ktypelist[maxktype++] = localnode;
}
......@@ -1160,7 +1160,7 @@ check_btype (node)
if (maxbsize <= maxbtype)
{
maxbsize = maxbsize * 3 / 2;
btypelist = (tree *)xrealloc (sizeof (tree) * maxbsize);
btypelist = (tree *)xrealloc (btypelist, sizeof (tree) * maxbsize);
}
btypelist[maxbtype++] = node;
return 0;
......
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