summaryrefslogtreecommitdiff
path: root/core/upb_def.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/upb_def.c')
-rw-r--r--core/upb_def.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/upb_def.c b/core/upb_def.c
index 8abb8bc..651afc1 100644
--- a/core/upb_def.c
+++ b/core/upb_def.c
@@ -727,6 +727,8 @@ static upb_flow_t upb_msgdef_endmsg(void *_b) {
// want to use a different ordering that puts all the required bits
// together.
f->field_index = i;
+ f->set_bit_mask = 1 << (i % 8);
+ f->set_bit_offset = i / 8;
size_t size, align;
if (upb_isarray(f)) {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback