aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-12-28 17:20:58 -0500
committerBruce Hill <bruce@bruce-hill.com>2025-12-28 17:20:58 -0500
commitb80e21ce3d673d981e44a725c62b62563a77db9b (patch)
treeeb2b80b02d3744608a40e0afa23723d65c9e6be8
parent1f35ffa018f9e870fa21d0ffbca15d99e23233de (diff)
Bugfix for Table.clear()
-rw-r--r--src/stdlib/tables.c2
1 files changed, 1 insertions, 1 deletions
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) {