From a952e42e996fcab8f13e48d0078c0e95a4d507d9 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Sat, 1 Aug 2009 18:34:24 -0700 Subject: Fixed a bug in set_flags order in the compiler. --- src/upb_context.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/upb_context.c') diff --git a/src/upb_context.c b/src/upb_context.c index 00b62cc..46d8f05 100644 --- a/src/upb_context.c +++ b/src/upb_context.c @@ -195,14 +195,12 @@ static bool insert_message(struct upb_strtable *t, upb_strtable_insert(t, &e.e); /* Add nested messages and enums. */ - //if(d->set_flags.has.nested_type) (re-enable when protoc sets) - if(d->nested_type) + if(d->set_flags.has.nested_type) for(unsigned int i = 0; i < d->nested_type->len; i++) if(!insert_message(t, d->nested_type->elements[i], &fqname, sort)) return false; - //if(d->set_flags.has.enum_type) - if(d->enum_type) + if(d->set_flags.has.enum_type) for(unsigned int i = 0; i < d->enum_type->len; i++) if(!insert_enum(t, d->enum_type->elements[i], &fqname)) return false; -- cgit v1.2.3