diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-12-28 17:20:58 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-12-28 17:20:58 -0500 |
| commit | b80e21ce3d673d981e44a725c62b62563a77db9b (patch) | |
| tree | eb2b80b02d3744608a40e0afa23723d65c9e6be8 | |
| parent | 1f35ffa018f9e870fa21d0ffbca15d99e23233de (diff) | |
Bugfix for Table.clear()
| -rw-r--r-- | src/stdlib/tables.c | 2 |
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) { |
