aboutsummaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-08 05:17:08 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-08 05:17:08 +0000
commite1ac78532dfcfa74bf7271eb741d4ee6a4eec7c1 (patch)
tree3dca4e4546ee90e08630d725300f687eb9cc0c0c /parse.y
parent8ceea34988a140c4c1f6194ac4a9e4144ca4193a (diff)
downloadruby-e1ac78532dfcfa74bf7271eb741d4ee6a4eec7c1.tar.gz
parse.y: constified NULL_LOC
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index c00c47cb73..4c1e5933c9 100644
--- a/parse.y
+++ b/parse.y
@@ -128,7 +128,7 @@ enum lex_state_e {
typedef VALUE stack_type;
-static rb_code_range_t NULL_LOC = { {0, -1}, {0, -1} };
+static const rb_code_range_t NULL_LOC = { {0, -1}, {0, -1} };
# define SHOW_BITSTACK(stack, name) (yydebug ? rb_parser_show_bitstack(parser, stack, name, __LINE__) : (void)0)
# define BITSTACK_PUSH(stack, n) (((stack) = ((stack)<<1)|((n)&1)), SHOW_BITSTACK(stack, #stack"(push)"))