mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
fix: dev: 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. Closes #5882 Merge branch '5882-fxhash-fix' into 'main' See merge request isc-projects/bind9!11857
This commit is contained in:
commit
a8d412ab21
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue