Skip to content

Commit 525279e

Browse files
committed
1 parent d0fbf08 commit 525279e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

3rd/lua/lgc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ static void clearkeys (global_State *g, GCObject *l, GCObject *f) {
652652
Table *h = gco2t(l);
653653
Node *n, *limit = gnodelast(h);
654654
for (n = gnode(h, 0); n < limit; n++) {
655-
if (!ttisnil(gval(n)) && (iscleared(g, gkey(n)))) {
655+
if (iscleared(g, gkey(n))) {
656656
setnilvalue(gval(n)); /* remove value ... */
657657
removeentry(n); /* and remove entry from table */
658658
}

0 commit comments

Comments
 (0)