From bb76c6a4d74036c9de5e75134554ca04b0b9b5cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Sun, 20 Jan 2019 23:01:04 +0100 Subject: Fix some memmory errors. And discovered some new ones. --- hash.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'hash.h') diff --git a/hash.h b/hash.h index 2a095cfd..cf955a95 100644 --- a/hash.h +++ b/hash.h @@ -18,7 +18,11 @@ unsigned long hash(char*); typedef struct { int size; int item_count; - TYPE* values; + /* NOTE + * Hash maps are always assumed to hold pointers to objects + * Double pointer means a list of pointers. + */ + TYPE** values; } TABLE(TYPE); int HASH_PUT(TYPE) ( TABLE(TYPE)* table, TYPE* value ); -- cgit v1.2.3