summaryrefslogtreecommitdiffstats
path: root/Hashtable.h
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-01-04 23:25:28 +0100
committercgzones <cgzones@googlemail.com>2021-01-06 16:59:28 +0100
commitca2c01bd1672a90985dc5425bfbb29f88eb10303 (patch)
treece296985bca3ca8b06d678f113c2d3700a0123e3 /Hashtable.h
parent7043a93eba78a37460b66abcabf3707022bd0181 (diff)
Hashtable: widen size from int to size_t
Diffstat (limited to 'Hashtable.h')
-rw-r--r--Hashtable.h7
1 files changed, 4 insertions, 3 deletions
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 <stdbool.h>
+#include <stddef.h>
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);

© 2014-2024 Faster IT GmbH | imprint | privacy policy