Patchwork Typo fix in loop-invariant.c

login
register
mail settings
Submitter Steven Bosscher
Date Nov. 26, 2012, 2:13 p.m.
Message ID <CABu31nOw+wDBYAmacS0GmGZU1m8=2mpL4sq4PVEBrAQQOJk0ag@mail.gmail.com>
Download mbox | patch
Permalink /patch/201702/
State New
Headers show

Comments

Steven Bosscher - Nov. 26, 2012, 2:13 p.m.
Will commit as obvious somewhen...

        * loop-invariant.c (heck_invariant_table_size): Take sizeof of
the right type.

     }
 }

Patch

Index: loop-invariant.c
===================================================================
--- loop-invariant.c    (revision 193814)
+++ loop-invariant.c    (working copy)
@@ -186,7 +186,7 @@  check_invariant_table_size (void)
       unsigned int new_size = DF_DEFS_TABLE_SIZE () +
(DF_DEFS_TABLE_SIZE () / 4);
       invariant_table = XRESIZEVEC (struct invariant *,
invariant_table, new_size);
       memset (&invariant_table[invariant_table_size], 0,
-             (new_size - invariant_table_size) * sizeof (struct rtx_iv *));
+             (new_size - invariant_table_size) * sizeof (struct invariant *));
       invariant_table_size = new_size;