We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87ec9af commit 82c4167Copy full SHA for 82c4167
pybind11_protobuf/proto_cast_util.cc
@@ -418,8 +418,8 @@ class PythonDescriptorPoolWrapper {
418
bool CopyToFileDescriptorProto(py::handle py_file_descriptor,
419
FileDescriptorProto* output) {
420
421
- return output->ParsePartialFromString(
422
- PyBytesAsStringView(py_file_descriptor.attr("serialized_pb")));
+ return output->ParsePartialFromString(std::string(
+ PyBytesAsStringView(py_file_descriptor.attr("serialized_pb"))));
423
}
424
425
py::object pool_; // never dereferenced.
0 commit comments