From 25b0a58bf5f79ca49f3e7074aacd0f57df8fd227 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 30 Nov 2012 05:42:01 +0000 Subject: [PATCH] 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 --- parse.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse.y b/parse.y index 6292287d50..2317796dc8 100644 --- a/parse.y +++ b/parse.y @@ -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)