diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2019-11-12 18:13:18 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2019-11-12 18:13:18 -0500 |
commit | c867081d359618c40f64d7712dfc85225ff68da7 (patch) | |
tree | b906941de311ca4adba2a0b9625f418289798a66 | |
parent | 1077f5a64081f98ec504aef3d93e8efeae2062cb (diff) |
...
-rw-r--r-- | hash_tables.c | 3 |
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)) { |