From: Gerd Moellmann Date: Mon, 7 Aug 2000 12:32:04 +0000 (+0000) Subject: (sweep_weak_table): Fix survival conditions for X-Git-Tag: emacs-pretest-21.0.90~2456 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=728c5d9df92181b7d1431890a4c95fe4fc801c9a;p=emacs.git (sweep_weak_table): Fix survival conditions for key-or-value and key-and-value weakness. --- diff --git a/src/fns.c b/src/fns.c index 1bd21d7783a..69b9427998f 100644 --- 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 ();