]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
fix innocent type mixup 11347/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 22 Feb 2022 18:36:56 +0000 (19:36 +0100)
committerGitHub <noreply@github.com>
Tue, 22 Feb 2022 18:36:56 +0000 (19:36 +0100)
Co-authored-by: Remi Gacogne <github@coredump.fr>
pdns/recursordist/stable-bloom.hh

index 877ed19f369629eb0e60b646a156980de4a392a9..bf7c837692cd87630095176e133f886da6f685a1 100644 (file)
@@ -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<uintptr_t>(data.data()) % sizeof(uint32_t) != 0) {
-      NoInitVector<uint32_t> x((data.length() / sizeof(int32_t)) + 1);
+      NoInitVector<uint32_t> 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);