From 7eec69903f6b87c937fcdd669891387191c0f159 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Tue, 22 Feb 2022 19:36:56 +0100 Subject: [PATCH] fix innocent type mixup Co-authored-by: Remi Gacogne --- pdns/recursordist/stable-bloom.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/recursordist/stable-bloom.hh b/pdns/recursordist/stable-bloom.hh index 877ed19f36..bf7c837692 100644 --- a/pdns/recursordist/stable-bloom.hh +++ b/pdns/recursordist/stable-bloom.hh @@ -168,7 +168,7 @@ private: // MurmurHash3 assumes the data is uint32_t aligned, so fixup if needed // It does handle string lengths that are not a multiple of sizeof(uint32_t) correctly if (reinterpret_cast(data.data()) % sizeof(uint32_t) != 0) { - NoInitVector x((data.length() / sizeof(int32_t)) + 1); + NoInitVector x((data.length() / sizeof(uint32_t)) + 1); memcpy(x.data(), data.data(), data.length()); MurmurHash3_x86_32(x.data(), data.length(), 1, &h1); MurmurHash3_x86_32(x.data(), data.length(), 2, &h2); -- 2.47.2