summaryrefslogtreecommitdiff
path: root/upbc.c
diff options
context:
space:
mode:
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