* tree.c (init_tree): Use ARRAY_SIZE.
authorGreg McGary <greg@mcgary.org>
Fri, 25 Aug 2000 19:07:56 +0000 (19:07 +0000)
committerGreg McGary <gkm@gcc.gnu.org>
Fri, 25 Aug 2000 19:07:56 +0000 (19:07 +0000)
From-SVN: r35989

gcc/cp/ChangeLog
gcc/cp/tree.c

index 7a7514c..0f0a150 100644 (file)
@@ -1,3 +1,7 @@
+2000-08-25  Greg McGary  <greg@mcgary.org>
+
+       * tree.c (init_tree): Use ARRAY_SIZE.
+
 2000-08-25  Gabriel Dos Reis  <gdr@codesourcery.com>
 
        * error.c (cp_tree_printer): Rework.
index 01d2fd9..cd7d45f 100644 (file)
@@ -2376,7 +2376,7 @@ init_tree ()
   make_lang_type_fn = cp_make_lang_type;
   lang_unsave = cp_unsave;
   ggc_add_root (list_hash_table, 
-               sizeof (list_hash_table) / sizeof (struct list_hash *),
+               ARRAY_SIZE (list_hash_table),
                sizeof (struct list_hash *),
                mark_list_hash);
 }