summaryrefslogtreecommitdiff
path: root/upb_msg.c
diff options
context:
space:
mode:
Diffstat (limited to 'upb_msg.c')
-rw-r--r--upb_msg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/upb_msg.c b/upb_msg.c
index d508b6d..89b396f 100644
--- a/upb_msg.c
+++ b/upb_msg.c
@@ -31,8 +31,9 @@ static int compare_fields(const void *e1, const void *e2) {
bool upb_msg_init(struct upb_msg *m, struct google_protobuf_DescriptorProto *d)
{
- /* TODO: more complete validation. */
- if(!d->set_flags.has.field) return false;
+ /* TODO: more complete validation.
+ * TODO: re-enable this check when we properly set this flag. */
+ //if(!d->set_flags.has.field) return false;
upb_inttable_init(&m->fields_by_num, d->field->len,
sizeof(struct upb_fieldsbynum_entry));
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback