From bcfa2adaa311b9d2589f54c673d042d5fdf5a67d Mon Sep 17 00:00:00 2001 From: Alessio Podda Date: Thu, 16 Apr 2026 11:56:46 +0200 Subject: [PATCH] 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. --- lib/isc/include/isc/fxhash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/isc/include/isc/fxhash.h b/lib/isc/include/isc/fxhash.h index 8cfbd323777..56273f55cba 100644 --- a/lib/isc/include/isc/fxhash.h +++ b/lib/isc/include/isc/fxhash.h @@ -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; } /* -- 2.47.3