summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-04 06:10:37 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-04 06:10:37 +0000
commit5e294b78204a2077d5c40d84b666b9aee39c8216 (patch)
treef94e7ac7ac8c5c5dfc0f2f55c801402dcf31f46b /parse.y
parentd21c35ca6a0504beec2df2ccb42a3895601e4fbb (diff)
parse.y: pack op_tbl
* parse.y (op_tbl): pack limited size strings. gcc/clang warn if initializer-string for char array is too long, but no option to err it now. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse.y b/parse.y
index f51f332bc4..bf5695fd96 100644
--- a/parse.y
+++ b/parse.y
@@ -10119,8 +10119,8 @@ rb_parser_while_loop(VALUE vparser, NODE *node, int chop, int split)
}
static const struct {
- ID token;
- const char *name;
+ unsigned short token;
+ const char name[3], term;
} op_tbl[] = {
{tDOT2, ".."},
{tDOT3, "..."},