aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1998-04-04 19:53:58 +0000
committerJeff Law <law@gcc.gnu.org>1998-04-04 12:53:58 -0700
commite06e4d453410364f49563827274f50e46d8d64dc (patch)
tree3de9ba5962974aba0927b842fe39f6a3da792d55
parent39bdfaa056121fd2a7d54de19863547390be29ab (diff)
downloadgcc-e06e4d453410364f49563827274f50e46d8d64dc.zip
gcc-e06e4d453410364f49563827274f50e46d8d64dc.tar.gz
gcc-e06e4d453410364f49563827274f50e46d8d64dc.tar.bz2
method.c (check_btype): Add missing argument to xrealloc.
* method.c (check_btype): Add missing argument to xrealloc. (check_ktype): Likewise. From-SVN: r18998
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/method.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 46bd0f3..23318129e 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+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.
diff --git a/gcc/cp/method.c b/gcc/cp/method.c
index 952fe9c..287ce2c 100644
--- a/gcc/cp/method.c
+++ b/gcc/cp/method.c
@@ -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;