From 8604f52d07c4f58bad2c821f78855fa40bfa9780 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sun, 24 Feb 2019 07:53:56 -0800 Subject: hash: gc issue in clearhash. * hash.c (clearhash): Assignment of new table into hash requires setcheck, because it's putting a new object into an old one. --- hash.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hash.c b/hash.c index 1667c741..500f1a09 100644 --- a/hash.c +++ b/hash.c @@ -876,6 +876,7 @@ val clearhash(val hash) h->modulus = c_num(mod); h->count = 0; h->table = table; + setcheck(hash, table); return oldcount ? num(oldcount) : nil; } -- cgit v1.2.3