diff options
| -rw-r--r-- | builtins/table.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/builtins/table.c b/builtins/table.c index cf73b256..e5ab410d 100644 --- a/builtins/table.c +++ b/builtins/table.c @@ -518,10 +518,7 @@ public table_t Table_from_entries(array_t entries, const TypeInfo *type) { assert(type->tag == TableInfo); table_t t = {.entries=entries}; - for (int64_t i = 0; i < Table_length(&t); i++) { - hdebug("Rehashing %u\n", i); - Table_set_bucket(&t, GET_ENTRY(&t, i), i, type); - } + hashmap_resize_buckets(&t, entries.length, type); return t; } |
