diff options
author | Joshua Haberman <joshua@reverberate.org> | 2009-07-21 10:41:40 -0700 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2009-07-21 10:41:40 -0700 |
commit | d7632d271cfda0d001d4373dd9884d21720d2f36 (patch) | |
tree | 5e6cdc015a25fa03947fa5f713b42f571433de41 /src/upb_msg.c | |
parent | cbc05553c974af3774222c92844bd62c88e7f8ae (diff) |
Pass pointer to tag instead of by value.
Diffstat (limited to 'src/upb_msg.c')
-rw-r--r-- | src/upb_msg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/upb_msg.c b/src/upb_msg.c index a923bb8..5d36c01 100644 --- a/src/upb_msg.c +++ b/src/upb_msg.c @@ -247,12 +247,12 @@ void upb_msg_reuse_submsg(void **msg, struct upb_msg *m) /* Serialization/Deserialization. ********************************************/ -static upb_field_type_t tag_cb(void *udata, struct upb_tag tag, +static upb_field_type_t tag_cb(void *udata, struct upb_tag *tag, void **user_field_desc) { struct upb_msg_parse_state *s = udata; - struct upb_msg_field *f = upb_msg_fieldbynum(s->top->m, tag.field_number); - if(!f || !upb_check_type(tag.wire_type, f->type)) + struct upb_msg_field *f = upb_msg_fieldbynum(s->top->m, tag->field_number); + if(!f || !upb_check_type(tag->wire_type, f->type)) return 0; /* Skip unknown or fields of the wrong type. */ *user_field_desc = f; return f->type; |