aboutsummaryrefslogtreecommitdiffstats
path: root/symbol.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-01-09 09:26:23 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-01-09 09:26:23 +0000
commit4a70c4905b4a98a353eabab917eea9dae0719ad9 (patch)
tree1f294f56e7fa4ceaebb89026fb9bdf2ff9ad87aa /symbol.h
parentf4ce2f5527df0bb052b433e1fc109265ad0e8c3f (diff)
downloadruby-4a70c4905b4a98a353eabab917eea9dae0719ad9.tar.gz
symbol.h: unexpected safe call
* symbol.h (is_attrset_id): ASET is an attrset ID. fix unexpected safe call instead of an ordinary ASET. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'symbol.h')
-rw-r--r--symbol.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/symbol.h b/symbol.h
index 7d95491ee6..641b9792ed 100644
--- a/symbol.h
+++ b/symbol.h
@@ -36,7 +36,7 @@ struct RSymbol {
#define is_local_id(id) (id_type(id)==ID_LOCAL)
#define is_global_id(id) (id_type(id)==ID_GLOBAL)
#define is_instance_id(id) (id_type(id)==ID_INSTANCE)
-#define is_attrset_id(id) (id_type(id)==ID_ATTRSET)
+#define is_attrset_id(id) ((id)==idASET||id_type(id)==ID_ATTRSET)
#define is_const_id(id) (id_type(id)==ID_CONST)
#define is_class_id(id) (id_type(id)==ID_CLASS)
#define is_junk_id(id) (id_type(id)==ID_JUNK)