From b80e21ce3d673d981e44a725c62b62563a77db9b Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 28 Dec 2025 17:20:58 -0500 Subject: Bugfix for Table.clear() --- src/stdlib/tables.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stdlib/tables.c b/src/stdlib/tables.c index d417545d..adbdd6bd 100644 --- a/src/stdlib/tables.c +++ b/src/stdlib/tables.c @@ -316,7 +316,7 @@ CONSTFUNC public void *Table$entry(Table_t t, int64_t n) { } public -void Table$clear(Table_t *t) { memset(t, 0, sizeof(Table_t)); } +void Table$clear(Table_t *t) { *t = EMPTY_TABLE; } public Table_t Table$sorted(Table_t t, const TypeInfo_t *type) { -- cgit v1.2.3