Add missing parenthesis to fxhash

The fxhash implementation had a missing parenthesis that caused it to
diverge from Rust's reference implementation. This commit fixes this.
This commit is contained in:
Alessio Podda 2026-04-16 11:56:46 +02:00
parent 5f8624df76
commit bcfa2adaa3

View file

@ -40,7 +40,7 @@
static inline size_t
fx_add_to_hash(size_t hash, size_t i) {
return ISC_ROTATE_LEFT(hash, 5) ^ i * K;
return (ISC_ROTATE_LEFT(hash, 5) ^ i) * K;
}
/*