From 728c5d9df92181b7d1431890a4c95fe4fc801c9a Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Mon, 7 Aug 2000 12:32:04 +0000 Subject: [PATCH] (sweep_weak_table): Fix survival conditions for key-or-value and key-and-value weakness. --- src/fns.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 (); -- 2.39.2