From: Otto Moerbeek Date: Tue, 22 Feb 2022 18:36:56 +0000 (+0100) Subject: fix innocent type mixup X-Git-Tag: rec-4.7.0-alpha1~7^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F11347%2Fhead;p=thirdparty%2Fpdns.git fix innocent type mixup Co-authored-by: Remi Gacogne --- 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);