diff options
Diffstat (limited to 'php')
-rw-r--r-- | php/ext/google/protobuf/upb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/php/ext/google/protobuf/upb.c b/php/ext/google/protobuf/upb.c index f09ec66f..841de789 100644 --- a/php/ext/google/protobuf/upb.c +++ b/php/ext/google/protobuf/upb.c @@ -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]); } } |