Skip to content

Commit

Permalink
Merge pull request #5033 from xfxyjwf/up
Browse files Browse the repository at this point in the history
Fix issues discovered in up-integration.
  • Loading branch information
xfxyjwf committed Aug 13, 2018
2 parents f2a326d + fa11dea commit d39c7ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/google/protobuf/message.h
Original file line number Diff line number Diff line change
Expand Up @@ -1160,7 +1160,7 @@ const T* DynamicCastToGenerated(const Message* from) {
(void)unused;

#ifdef GOOGLE_PROTOBUF_NO_RTTI
bool ok = &T::default_instance()->GetReflection() == from->GetReflection();
bool ok = T::default_instance().GetReflection() == from->GetReflection();
return ok ? down_cast<const T*>(from) : nullptr;
#else
return dynamic_cast<const T*>(from);
Expand Down

0 comments on commit d39c7ef

Please sign in to comment.