Merge pull request #104 from TeBoring/php-change

Bytes type should return size of stringview
pull/13171/head
Paul Yang 7 years ago committed by GitHub
commit 13f200bd77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      upb/msg.c

@ -64,9 +64,9 @@ static size_t upb_msgval_sizeof(upb_fieldtype_t type) {
return 4;
case UPB_TYPE_BOOL:
return 1;
case UPB_TYPE_BYTES:
case UPB_TYPE_MESSAGE:
return sizeof(void*);
case UPB_TYPE_BYTES:
case UPB_TYPE_STRING:
return sizeof(upb_stringview);
}

Loading…
Cancel
Save