From 858a2ab52f34c32ba82b65488874528cdd3a7f8f Mon Sep 17 00:00:00 2001 From: Protobuf Team Bot Date: Mon, 20 May 2024 11:08:47 -0700 Subject: [PATCH] Fix warning about a bool==uint64 check. PiperOrigin-RevId: 635512395 --- src/google/protobuf/text_format.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/google/protobuf/text_format.cc b/src/google/protobuf/text_format.cc index 0a51d9b3c1..613243638c 100644 --- a/src/google/protobuf/text_format.cc +++ b/src/google/protobuf/text_format.cc @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include @@ -917,7 +918,7 @@ class TextFormat::Parser::ParserImpl { if (LookingAtType(io::Tokenizer::TYPE_INTEGER)) { uint64_t value; DO(ConsumeUnsignedInteger(&value, 1)); - SET_FIELD(Bool, bool, value); + SET_FIELD(Bool, bool, static_cast(value)); } else { std::string value; DO(ConsumeIdentifier(&value));