summaryrefslogtreecommitdiff
path: root/hash_tables.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2019-11-12 18:13:18 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2019-11-12 18:13:18 -0500
commitc867081d359618c40f64d7712dfc85225ff68da7 (patch)
treeb906941de311ca4adba2a0b9625f418289798a66 /hash_tables.c
parent1077f5a64081f98ec504aef3d93e8efeae2062cb (diff)
...
Diffstat (limited to 'hash_tables.c')
-rw-r--r--hash_tables.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hash_tables.c b/hash_tables.c
index e5f1652..58ccbfd 100644
--- a/hash_tables.c
+++ b/hash_tables.c
@@ -288,9 +288,10 @@ static void hash_table_free(HashTable *h) {
static void val_hash_table_test(void) {
HashTable h = {0};
- Type type = {0};
+ Type type;
type.kind = TYPE_BUILTIN;
type.builtin = BUILTIN_I64;
+ type.flags = TYPE_IS_RESOLVED;
for (I64 n = 0; n < 100; n++) {
Value v = {.i64 = n * n};
if (val_hash_table_add(&h, v, &type, &n)) {