From 852c45325fddddeab8be940855ed5ecac3e7b3aa Mon Sep 17 00:00:00 2001 From: BinDiff Authors Date: Thu, 30 Jul 2026 01:52:34 -0700 Subject: [PATCH] Automated Code Change PiperOrigin-RevId: 956366898 Change-Id: Ie2cbe0dc6ca1279aaa4d5d9adab9f85151cc969c --- prime_signature.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/prime_signature.cc b/prime_signature.cc index 012ccbfd..cec35000 100644 --- a/prime_signature.cc +++ b/prime_signature.cc @@ -15,6 +15,7 @@ #include "third_party/zynamics/bindiff/prime_signature.h" #include +#include #include "third_party/absl/base/macros.h" @@ -12540,7 +12541,7 @@ static constexpr uint32_t kPrimes[] = { 1299721, 1299743, 1299763, 1299791, 1299811, 1299817, 1299821, 1299827}; constexpr size_t GetPrimeTableSize() { - static_assert(100003 <= ABSL_ARRAYSIZE(kPrimes), + static_assert(100003 <= std::size(kPrimes), "Table size should be prime to avoid collisions"); // There are 100008 primes in the table, the largest prime < 100008 is 100003. // 100003 is at index 9592.