]> git.lizzy.rs Git - nothing.git/blobdiff - src/hashset.c
Add TODO(#854)
[nothing.git] / src / hashset.c
index 810901866d1aa5552f06c282b01ecf043e6fecb4..50676726792c166e9e77046a043cc7cf45b7cd35 100644 (file)
@@ -10,7 +10,7 @@
 
 struct HashSet
 {
-    Lt lt;
+    Lt *lt;
     size_t n;
     size_t element_size;
     size_t count;
@@ -32,7 +32,7 @@ static uint64_t fnv1(const char *data, size_t size)
 
 HashSet *create_hashset(size_t element_size, size_t n)
 {
-    Lt lt = {0};
+    Lt *lt = create_lt();
 
     HashSet *hash_set = PUSH_LT(lt, nth_calloc(1, sizeof(HashSet)), free);
     if (hash_set == NULL) {