diff options
author | Paul Yang <TeBoring@users.noreply.github.com> | 2018-03-06 15:07:05 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-06 15:07:05 -0800 |
commit | a48d58df9643781947da57bdc13a23ac8d868346 (patch) | |
tree | d260763104737dde303843d2d87a3dffb795a172 /php/ext | |
parent | 0f4ad85740e891cdf42f54cee587371bf9b2132f (diff) | |
download | protobuf-a48d58df9643781947da57bdc13a23ac8d868346.tar.gz protobuf-a48d58df9643781947da57bdc13a23ac8d868346.tar.bz2 protobuf-a48d58df9643781947da57bdc13a23ac8d868346.zip |
Convert descriptortype to type for upb_msgval_sizeof (#4357)
Diffstat (limited to 'php/ext')
-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]); } } |