]> git.eshelyaron.com Git - emacs.git/commitdiff
(sweep_weak_table): Fix survival conditions for
authorGerd Moellmann <gerd@gnu.org>
Mon, 7 Aug 2000 12:32:04 +0000 (12:32 +0000)
committerGerd Moellmann <gerd@gnu.org>
Mon, 7 Aug 2000 12:32:04 +0000 (12:32 +0000)
key-or-value and key-and-value weakness.

src/fns.c

index 1bd21d7783a870be24cb90cd707d7c24602e774f..69b9427998f2e1742cb4a5c401099f989ba51580 100644 (file)
--- a/src/fns.c
+++ b/src/fns.c
@@ -4318,9 +4318,9 @@ sweep_weak_table (h, remove_entries_p)
          else if (EQ (h->weak, Qvalue))
            remove_p = !value_known_to_survive_p;
          else if (EQ (h->weak, Qkey_or_value))
-           remove_p = !key_known_to_survive_p || !value_known_to_survive_p;
+           remove_p = !(key_known_to_survive_p || value_known_to_survive_p);
          else if (EQ (h->weak, Qkey_and_value))
-           remove_p = !key_known_to_survive_p && !value_known_to_survive_p;
+           remove_p = !(key_known_to_survive_p && value_known_to_survive_p);
          else
            abort ();