From c867081d359618c40f64d7712dfc85225ff68da7 Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Tue, 12 Nov 2019 18:13:18 -0500 Subject: ... --- hash_tables.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'hash_tables.c') 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)) { -- cgit v1.2.3