From 2c5c3fdc25c586c1eee987f1c4181b5eee0732ec Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Thu, 2 Jul 2009 21:40:10 -0700 Subject: More tests and fixes. --- upb_msg.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'upb_msg.c') 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)); -- cgit v1.2.3