Use a 64 bit hash for the buckets, just to avoid conversion warnings
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-win (push) Waiting to run
CodeQL Advanced / Analyze (c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run

This commit is contained in:
Andrea Mazzoleni 2026-02-18 19:52:57 +01:00
parent 7af0111c4a
commit 575ce99b5f

View file

@ -1434,7 +1434,7 @@ void bucket_free(struct snapraid_bucket* bucket)
void bucket_insert(tommy_hashdyn* bucket_hash, time_t time_at, block_off_t count, int justsynced)
{
unsigned hash = tommy_inthash_u32(time_at);
tommy_hash_t hash = tommy_inthash_u64(time_at);
tommy_node* i = tommy_hashdyn_bucket(bucket_hash, hash);
while (i) {
struct snapraid_bucket* entry = i->data;