diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-09-16 09:09:10 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-09-16 09:09:10 +0000 |
commit | f3dd7c49630a771acafd2d4f358ff2e7a74b4d15 (patch) | |
tree | c15bd257cf4dd184f856394e0ea1eec98b94d653 /parse.y | |
parent | 32d416db0db4e445d8156885aae9c6b26ce56c56 (diff) | |
download | ruby-f3dd7c49630a771acafd2d4f358ff2e7a74b4d15.tar.gz |
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
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 || \ |