Pārlūkot izejas kodu

Fix issues discovered in up-integration.

Feng Xiao 7 gadi atpakaļ
vecāks
revīzija
fa11dea05b
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/google/protobuf/message.h

+ 1 - 1
src/google/protobuf/message.h

@@ -1160,7 +1160,7 @@ const T* DynamicCastToGenerated(const Message* from) {
   (void)unused;
   (void)unused;
 
 
 #ifdef GOOGLE_PROTOBUF_NO_RTTI
 #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;
   return ok ? down_cast<const T*>(from) : nullptr;
 #else
 #else
   return dynamic_cast<const T*>(from);
   return dynamic_cast<const T*>(from);