From e1ac78532dfcfa74bf7271eb741d4ee6a4eec7c1 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 8 Jan 2018 05:17:08 +0000 Subject: parse.y: constified NULL_LOC git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- parse.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'parse.y') 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)")) -- cgit v1.2.3