diff --git a/src/google/protobuf/arena.cc b/src/google/protobuf/arena.cc index 6ac4bab6c6..5b24882ccd 100644 --- a/src/google/protobuf/arena.cc +++ b/src/google/protobuf/arena.cc @@ -521,7 +521,7 @@ void ThreadSafeArena::InitializeWithPolicy(const AllocationPolicy& policy) { } new (p) AllocationPolicy{policy}; // Low bits store flags, so they mustn't be overwritten. - ABSL_DCHECK_EQ(0, reinterpret_cast(p) & 3); + ABSL_DCHECK_EQ(0u, reinterpret_cast(p) & 3); alloc_policy_.set_policy(reinterpret_cast(p)); ABSL_DCHECK_POLICY_FLAGS_();