1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

st: Add 'static const'

patched by Ken Takata [ruby-core:78558]
44e3c0a16d

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2016-12-12 14:55:15 +00:00
parent 8f21d921dc
commit 31f17f880e

4
st.c
View file

@ -192,7 +192,7 @@ struct st_features {
/* Features of all possible size tables. */
#if SIZEOF_ST_INDEX_T == 8
#define MAX_POWER2 62
struct st_features features[] = {
static const struct st_features features[] = {
{0, 1, 0, 0x0},
{1, 2, 0, 0x1},
{2, 3, 0, 0x1},
@ -261,7 +261,7 @@ struct st_features features[] = {
#else
#define MAX_POWER2 30
struct st_features features[] = {
static const struct st_features features[] = {
{0, 1, 0, 0x1},
{1, 2, 0, 0x1},
{2, 3, 0, 0x2},