Mercurial > emacs
changeset 30637:b54946f3cbbc
(sweep_weak_table): Fix survival conditions for
key-or-value and key-and-value weakness.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Mon, 07 Aug 2000 12:32:04 +0000 |
parents | 88e0ba67d3bc |
children | 90d9fcda2a65 |
files | src/fns.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/fns.c Mon Aug 07 12:31:50 2000 +0000 +++ b/src/fns.c Mon Aug 07 12:32:04 2000 +0000 @@ -4318,9 +4318,9 @@ 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 ();