Commit 723010dc authored by Feng Xiao's avatar Feng Xiao

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

Fix narrowing implicit cast in generated message [NFC]
parents 27c52294 f42a68df
......@@ -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");
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment