summaryrefslogtreecommitdiff
path: root/upbc.c
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2009-07-06 03:00:15 -0700
committerJoshua Haberman <joshua@reverberate.org>2009-07-06 03:00:15 -0700
commit06efc6b12c69b0c778cd5d4dc1e9712b0dfb58ff (patch)
tree71923e95a63090540bbf8c2283fb5c342edc5e7f /upbc.c
parent7f871401c77bcda18e8f41e457ee55388773d183 (diff)
Fixed a lot of bugs, parser and compiler now work a little!
Diffstat (limited to 'upbc.c')
-rw-r--r--upbc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/upbc.c b/upbc.c
index 2cda5e4..b27568e 100644
--- a/upbc.c
+++ b/upbc.c
@@ -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," */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback