method.c (check_btype): Add missing argument to xrealloc.
authorJeffrey A Law <law@cygnus.com>
Sat, 4 Apr 1998 19:53:58 +0000 (19:53 +0000)
committerJeff Law <law@gcc.gnu.org>
Sat, 4 Apr 1998 19:53:58 +0000 (12:53 -0700)
        * method.c (check_btype): Add missing argument to xrealloc.
        (check_ktype): Likewise.

From-SVN: r18998

gcc/cp/ChangeLog
gcc/cp/method.c

index 46bd0f329352e29467ef4dab141312dea2bb08ed..23318129eee5aef3ee765d3ed771e95204957bba 100644 (file)
@@ -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.
index 952fe9cd03ba965cfcc33190005e557cde0975b5..287ce2cbadd3e857e04b9f36ed9e6585026df687 100644 (file)
@@ -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;