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

parse.y: LVAR_USED

* parse.y (LVAR_USED): use MSB of ID.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-11-30 05:42:01 +00:00
parent 7e42e55e08
commit 25b0a58bf5

View file

@ -8545,7 +8545,7 @@ is_private_local_id(ID name)
return RSTRING_PTR(s)[0] == '_';
}
#define LVAR_USED ((int)1 << (sizeof(int) * CHAR_BIT - 1))
#define LVAR_USED ((ID)1 << (sizeof(ID) * CHAR_BIT - 1))
static ID
shadowing_lvar_gen(struct parser_params *parser, ID name)