summaryrefslogtreecommitdiff
path: root/upb/def.c
diff options
context:
space:
mode:
Diffstat (limited to 'upb/def.c')
-rw-r--r--upb/def.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/upb/def.c b/upb/def.c
index 5a449c0..09eab7d 100644
--- a/upb/def.c
+++ b/upb/def.c
@@ -212,7 +212,7 @@ upb_fielddef *upb_fielddef_new() {
f->finalized = false;
f->type = 0;
f->label = UPB_LABEL(OPTIONAL);
- f->hasbit = 0;
+ f->hasbit = -1;
f->offset = 0;
f->number = 0; // not a valid field number.
f->hasdefault = false;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback