Use uint32_t for hashtable indicies

This commit is contained in:
Vladimir Dubrovin committed 2026-04-18 15:36:14 +03:00
1 parent bba9871ed8
commit 260cbf7a3d
2 files changed
+11 -11

No files matched your search

+3 -3
View File
@@ -759,7 +759,7 @@ struct child {
struct hashentry {
uint8_t hash[HASH_SIZE];
time_t expires;
int inext;
uint32_t inext;
char value[4];
};
@@ -767,9 +767,9 @@ struct hashtable {
unsigned hashsize;
unsigned recsize;
unsigned rnd[4];
int * ihashtable;
uint32_t * ihashtable;
uint8_t * hashvalues;
int ihashempty;
uint32_t ihashempty;
void (*index2hash)(const void *index, unsigned char *hash, const unsigned char *rnd);
int grow;
time_t compacted;