summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hashtbl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hashtbl.c b/hashtbl.c
index 879dd93..348bc40 100644
--- a/hashtbl.c
+++ b/hashtbl.c
@@ -63,6 +63,7 @@ static struct hash_tbl_node *alloc_table(size_t newsize)
void hash_init(struct hash_table *head, size_t size)
{
+ nasm_assert(is_power2(size));
head->table = alloc_table(size);
head->load = 0;
head->size = size;