check-init.c (check_init): COPYN takes word count, not bit count.
authorPer Bothner <bothner@gcc.gnu.org>
Fri, 26 Feb 1999 14:50:20 +0000 (06:50 -0800)
committerPer Bothner <bothner@gcc.gnu.org>
Fri, 26 Feb 1999 14:50:20 +0000 (06:50 -0800)

*  check-init.c (check_init):  COPYN takes word count, not bit count.

From-SVN: r25470

gcc/java/check-init.c

index 24dcc2c714c1035afaa4e437dc89af6e1da18297..bf1e3deb6a846e779e5bd2cc8a33d679396a8206 100644 (file)
@@ -510,7 +510,7 @@ check_init (exp, before)
        struct alternatives *alt = alternatives;
        while (TREE_CODE (alt->block) != SWITCH_EXPR)
          alt = alt->outer;
-       COPYN (before, alt->saved, alt->num_locals);
+       COPYN (before, alt->saved, WORDS_NEEDED (alt->num_locals));
        for (i = alt->num_locals;  i < num_current_locals;  i++)
          CLEAR_BIT (before, i);
        break;