Switch from DownCastToGenerated to DownCastMessage
diff --git a/src/mutator.cc b/src/mutator.cc
index 6977ea7..4fdcae4 100644
--- a/src/mutator.cc
+++ b/src/mutator.cc
@@ -381,13 +381,13 @@
const Any* CastToAny(const Message* message) {
return Any::GetDescriptor() == message->GetDescriptor()
- ? protobuf::DownCastToGenerated<Any>(message)
+ ? protobuf::DownCastMessage<Any>(message)
: nullptr;
}
Any* CastToAny(Message* message) {
return Any::GetDescriptor() == message->GetDescriptor()
- ? protobuf::DownCastToGenerated<Any>(message)
+ ? protobuf::DownCastMessage<Any>(message)
: nullptr;
}