From ca2c01bd1672a90985dc5425bfbb29f88eb10303 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Mon, 4 Jan 2021 23:25:28 +0100 Subject: Hashtable: widen size from int to size_t --- Hashtable.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Hashtable.h') diff --git a/Hashtable.h b/Hashtable.h index 7152f5df..d6b7be22 100644 --- a/Hashtable.h +++ b/Hashtable.h @@ -8,6 +8,7 @@ in the source distribution for its full text. */ #include +#include typedef unsigned int ht_key_t; @@ -18,17 +19,17 @@ typedef struct Hashtable_ Hashtable; #ifndef NDEBUG -unsigned int Hashtable_count(const Hashtable* this); +size_t Hashtable_count(const Hashtable* this); #endif /* NDEBUG */ -Hashtable* Hashtable_new(unsigned int size, bool owner); +Hashtable* Hashtable_new(size_t size, bool owner); void Hashtable_delete(Hashtable* this); void Hashtable_clear(Hashtable* this); -void Hashtable_setSize(Hashtable* this, unsigned int size); +void Hashtable_setSize(Hashtable* this, size_t size); void Hashtable_put(Hashtable* this, ht_key_t key, void* value); -- cgit v1.2.3