summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/dict.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/dict.h b/src/dict.h
index 967a238b6..63ac7244f 100644
--- a/src/dict.h
+++ b/src/dict.h
@@ -52,9 +52,13 @@ typedef struct dictEntry {
int64_t s64;
double d;
} v;
- struct dictEntry *next;
} dictEntry;
+typedef struct dictEntrySlot {
+ unsigned long numentries;
+ dictEntry *entries;
+} dictEntrySlot;
+
typedef struct dictType {
unsigned int (*hashFunction)(const void *key);
void *(*keyDup)(void *privdata, const void *key);
@@ -67,7 +71,7 @@ typedef struct dictType {
/* This is our hash table structure. Every dictionary has two of this as we
* implement incremental rehashing, for the old to the new table. */
typedef struct dictht {
- dictEntry **table;
+ dictEntrySlot **table;
unsigned long size;
unsigned long sizemask;
unsigned long used;