diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-08-15 02:39:35 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-08-15 02:39:35 -0400 |
| commit | 66ae30ac29d93ac7346bbb465e6c49f540ec4079 (patch) | |
| tree | e4a2b839fed20e8a4a5efe6103ecf2a765eeda6c /builtins/table.c | |
| parent | ed1667cb377dd8da51583e703c6677969addc993 (diff) | |
Add method for array:remove_item(item) and rename
array:remove(index)->array:remove_at(index) to avoid confusion. Also
hook up array:has()
Diffstat (limited to 'builtins/table.c')
| -rw-r--r-- | builtins/table.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtins/table.c b/builtins/table.c index f99ffc86..8de6532c 100644 --- a/builtins/table.c +++ b/builtins/table.c @@ -350,7 +350,7 @@ public void Table$remove(table_t *t, const void *key, const TypeInfo *type) // Last entry is being removed, so clear it out to be safe: memset(GET_ENTRY(*t, last_entry), 0, entry_size(type)); - Array$remove(&t->entries, I(t->entries.length), I(1), entry_size(type)); + Array$remove_at(&t->entries, I(t->entries.length), I(1), entry_size(type)); int64_t bucket_to_clear; if (prev) { // Middle (or end) of a chain |
