Skip to content

Commit

Permalink
provide a correct field reference
Browse files Browse the repository at this point in the history
  • Loading branch information
antongrbin committed Apr 18, 2024
1 parent b4bd664 commit 224c976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/google/protobuf/json/internal/parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ absl::Status ParseMap(JsonLexer& lex, Field<Traits> field, Msg<Traits>& msg) {
}
case FieldDescriptor::TYPE_ENUM: {
MaybeOwnedString key_str = key.value;
auto e = ParseEnumFromStr<Traits>(lex, key_str, field);
auto e = ParseEnumFromStr<Traits>(lex, key_str, key_field);
RETURN_IF_ERROR(e.status());
Traits::SetEnum(key_field, entry, e->value_or(0));
break;
Expand Down

0 comments on commit 224c976

Please sign in to comment.