From 90b3a20af0f63007fc1c129f66fa022f7f43b2d8 Mon Sep 17 00:00:00 2001 From: Nicolas Noble Date: Wed, 4 Mar 2020 16:50:44 -0800 Subject: [PATCH] Making sure _upb_fieldtype_to_sizelg2 is readonly This will hopefully move that array into a readonly data section. --- upb/msg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upb/msg.c b/upb/msg.c index 6c6d3008aa..8df9d7a1f7 100644 --- a/upb/msg.c +++ b/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 */