Skip to content

Commit 505e54e

Browse files
Xiaofei Wangcopybara-github
authored andcommitted
Use ProtoType::GetDescriptor() instead of ProtoType::descriptor().
PiperOrigin-RevId: 493994140
1 parent 4ac531c commit 505e54e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pybind11_protobuf/proto_caster_impl.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ struct proto_caster_load_impl {
6363
// The incoming object is not a compatible fast_cpp_proto, so check whether
6464
// it is otherwise compatible, then serialize it and deserialize into a
6565
// native C++ proto type.
66-
if (!pybind11_protobuf::PyProtoIsCompatible(src, ProtoType::descriptor())) {
66+
if (!pybind11_protobuf::PyProtoIsCompatible(src,
67+
ProtoType::GetDescriptor())) {
6768
return false;
6869
}
6970
owned = std::unique_ptr<ProtoType>(new ProtoType());

0 commit comments

Comments
 (0)