diff options
author | Danny van Kooten <dannyvankooten@users.noreply.github.com> | 2020-03-12 14:19:24 +0100 |
---|---|---|
committer | Danny van Kooten <dannyvankooten@users.noreply.github.com> | 2020-03-12 14:19:24 +0100 |
commit | 616ff505f666d4d162e5d2d8c0238f8af6f79c40 (patch) | |
tree | bd475af1d3c7b200d38e6769d33c1bed77384d15 /src/hashmap.h | |
parent | 83eee4d23f9da9e72238dd01d43b350ed5bc04f1 (diff) | |
download | unja-616ff505f666d4d162e5d2d8c0238f8af6f79c40.tar.gz unja-616ff505f666d4d162e5d2d8c0238f8af6f79c40.zip |
add first template tests
Diffstat (limited to 'src/hashmap.h')
-rw-r--r-- | src/hashmap.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hashmap.h b/src/hashmap.h index a37d3d6..93297af 100644 --- a/src/hashmap.h +++ b/src/hashmap.h @@ -1,6 +1,7 @@ +#define HASHMAP_CAP 26 struct hashmap { - struct node *buckets[26]; + struct node *buckets[HASHMAP_CAP]; }; void hashmap_insert(struct hashmap *hm, char *key, void *value); |