From f42a68df5418a032921bd10d6d8551571a2598b4 Mon Sep 17 00:00:00 2001 From: Kal Conley Date: Tue, 8 Dec 2015 14:11:45 -0800 Subject: [PATCH] Fix narrowing implicit cast in generated message [NFC] --- src/google/protobuf/compiler/cpp/cpp_message.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/google/protobuf/compiler/cpp/cpp_message.cc b/src/google/protobuf/compiler/cpp/cpp_message.cc index 8c0bfab757..af409c290e 100644 --- a/src/google/protobuf/compiler/cpp/cpp_message.cc +++ b/src/google/protobuf/compiler/cpp/cpp_message.cc @@ -3364,7 +3364,7 @@ GenerateSerializeWithCachedSizesBody(io::Printer* printer, bool to_array) { } else { printer->Print( "output->WriteRaw(unknown_fields().data(),\n" - " unknown_fields().size());\n"); + " static_cast(unknown_fields().size()));\n"); } } }