Skip to content

Commit 13cd8e3

Browse files
pps83copybara-github
authored andcommitted
Avoid implicit pointer to bool conversion (#25555)
Closes #25555 COPYBARA_INTEGRATE_REVIEW=#25555 from pps83:main-ptr-bool-conversion f06d1f1 PiperOrigin-RevId: 863535794
1 parent 7c452f7 commit 13cd8e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/google/protobuf/generated_message_reflection.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ struct ReflectionSchema {
117117
uint32_t GetObjectSize() const { return static_cast<uint32_t>(object_size_); }
118118

119119
bool InRealOneof(const FieldDescriptor* field) const {
120-
return field->real_containing_oneof();
120+
return field->real_containing_oneof() != nullptr;
121121
}
122122

123123
// Offset of any field.

0 commit comments

Comments
 (0)