Merge pull request #1033 from c0nk/wip-implicit-cast-fix

Fix narrowing implicit cast in generated message [NFC]
pull/1039/head
Feng Xiao 9 years ago
commit 723010dc54
  1. 2
      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<int>(unknown_fields().size()));\n");
}
}
}

Loading…
Cancel
Save