From d278cde036f9fa0f56b5a0b49baf498f13ebf332 Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Wed, 19 Jan 2005 00:08:30 +0000 Subject: [PATCH] (sweep_weak_table): Advance prev pointer when we keep a pair. --- src/fns.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/fns.c b/src/fns.c index 3f92a0e0bfb..9a3121a3391 100644 --- a/src/fns.c +++ b/src/fns.c @@ -4836,6 +4836,10 @@ sweep_weak_table (h, remove_entries_p) h->count = make_number (XFASTINT (h->count) - 1); } + else + { + prev = idx; + } } else { -- 2.39.5