Making sure _upb_fieldtype_to_sizelg2 is readonly

This will hopefully move that array into a readonly data section.
pull/13171/head
Nicolas Noble 5 years ago committed by GitHub
parent 97bcd5276c
commit 90b3a20af0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      upb/msg.c

@ -9,7 +9,7 @@
/** upb_msg *******************************************************************/
static char _upb_fieldtype_to_sizelg2[12] = {
static const char _upb_fieldtype_to_sizelg2[12] = {
0,
0, /* UPB_TYPE_BOOL */
2, /* UPB_TYPE_FLOAT */

Loading…
Cancel
Save