diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-04 06:10:37 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-04 06:10:37 +0000 |
commit | 5e294b78204a2077d5c40d84b666b9aee39c8216 (patch) | |
tree | f94e7ac7ac8c5c5dfc0f2f55c801402dcf31f46b /parse.y | |
parent | d21c35ca6a0504beec2df2ccb42a3895601e4fbb (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.y | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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, "..."}, |