Skip to content

Commit

Permalink
Migrate direct callers of options().packed() to is_packed() helper.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 618254593
  • Loading branch information
mkruskal-google authored and copybara-github committed Mar 22, 2024
1 parent 500c953 commit e56ebce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/google/protobuf/generated_message_reflection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2231,8 +2231,7 @@ void Reflection::AddEnumValueInternal(Message* message,
int value) const {
if (field->is_extension()) {
MutableExtensionSet(message)->AddEnum(field->number(), field->type(),
field->options().packed(), value,
field);
field->is_packed(), value, field);
} else {
AddField<int>(message, field, value);
}
Expand Down

0 comments on commit e56ebce

Please sign in to comment.