From 52430d7c60e9b060174b53acbb983f62b0c27666 Mon Sep 17 00:00:00 2001 From: Dave MacLachlan Date: Wed, 14 Jun 2023 17:02:18 -0700 Subject: [PATCH] Fix up sign comparison warning. PiperOrigin-RevId: 540420790 --- src/google/protobuf/generated_message_reflection.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/google/protobuf/generated_message_reflection.cc b/src/google/protobuf/generated_message_reflection.cc index 623b27a077940..7e8abd7230b42 100644 --- a/src/google/protobuf/generated_message_reflection.cc +++ b/src/google/protobuf/generated_message_reflection.cc @@ -3386,7 +3386,8 @@ const internal::TcParseTableBase* Reflection::CreateTcParseTable() const { inlined_string_indices); const size_t fast_entries_count = table_info.fast_path_fields.size(); - ABSL_CHECK_EQ(fast_entries_count, 1 << table_info.table_size_log2); + ABSL_CHECK_EQ(static_cast(fast_entries_count), + 1 << table_info.table_size_log2); const uint16_t lookup_table_offset = AlignTo( sizeof(TcParseTableBase) + fast_entries_count * sizeof(TcParseTableBase::FastFieldEntry));