diff options
author | Jeffrey A Law <law@cygnus.com> | 1998-04-04 19:53:58 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-04-04 12:53:58 -0700 |
commit | e06e4d453410364f49563827274f50e46d8d64dc (patch) | |
tree | 3de9ba5962974aba0927b842fe39f6a3da792d55 /gcc/cp/method.c | |
parent | 39bdfaa056121fd2a7d54de19863547390be29ab (diff) | |
download | gcc-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
Diffstat (limited to 'gcc/cp/method.c')
-rw-r--r-- | gcc/cp/method.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |