Unverified Commit a48d58df authored by Paul Yang's avatar Paul Yang Committed by GitHub

Convert descriptortype to type for upb_msgval_sizeof (#4357)

parent 0f4ad857
......@@ -4108,7 +4108,7 @@ static uint8_t upb_msg_fieldsize(const upb_msglayout_fieldinit_v1 *field) {
if (field->label == UPB_LABEL_REPEATED) {
return sizeof(void*);
} else {
return upb_msgval_sizeof(field->descriptortype);
return upb_msgval_sizeof(upb_desctype_to_fieldtype[field->descriptortype]);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment