aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 d4a51276..81cccceb 100644
--- a/src/stdlib/tables.c
+++ b/src/stdlib/tables.c
@@ -317,7 +317,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) {