From f3dd7c49630a771acafd2d4f358ff2e7a74b4d15 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 16 Sep 2012 09:09:10 +0000 Subject: parse.y: suppress warnings * parse.y (id_type): suppress warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- parse.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse.y b/parse.y index cadc9beecb..db24e1564b 100644 --- a/parse.y +++ b/parse.y @@ -56,7 +56,7 @@ static ID register_symid_str(ID, VALUE); #define is_const_id(id) (is_notop_id(id)&&((id)&ID_SCOPE_MASK)==ID_CONST) #define is_class_id(id) (is_notop_id(id)&&((id)&ID_SCOPE_MASK)==ID_CLASS) #define is_junk_id(id) (is_notop_id(id)&&((id)&ID_SCOPE_MASK)==ID_JUNK) -#define id_type(id) (is_notop_id(id) ? ((id)&ID_SCOPE_MASK) : -1) +#define id_type(id) (is_notop_id(id) ? (int)((id)&ID_SCOPE_MASK) : -1) #define is_asgn_or_id(id) ((is_notop_id(id)) && \ (((id)&ID_SCOPE_MASK) == ID_GLOBAL || \ -- cgit v1.2.3