diff options
author | Joshua Haberman <joshua@reverberate.org> | 2009-07-06 03:00:15 -0700 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2009-07-06 03:00:15 -0700 |
commit | 06efc6b12c69b0c778cd5d4dc1e9712b0dfb58ff (patch) | |
tree | 71923e95a63090540bbf8c2283fb5c342edc5e7f /upbc.c | |
parent | 7f871401c77bcda18e8f41e457ee55388773d183 (diff) |
Fixed a lot of bugs, parser and compiler now work a little!
Diffstat (limited to 'upbc.c')
-rw-r--r-- | upbc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -58,7 +58,7 @@ static void write_header(struct upb_symtab_entry entries[], int num_entries, fprintf(stream, "typedef enum " UPB_STRFMT " {\n", UPB_STRARG(enum_name)); if(ed->set_flags.has.value) { for(uint32_t j = 0; j < ed->value->len; j++) { /* Foreach enum value. */ - google_protobuf_EnumValueDescriptorProto *v = ed->value->elements[i]; + google_protobuf_EnumValueDescriptorProto *v = ed->value->elements[j]; struct upb_string value_name = upb_strdup(*v->name); to_preproc(value_name); /* " GOOGLE_PROTOBUF_FIELDDESCRIPTORPROTO_TYPE_UINT32 = 13," */ |