summaryrefslogtreecommitdiff
path: root/include/ruby/ruby.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-14 01:44:48 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-14 01:44:48 +0000
commite4259b7cc5e8993483da4ff9785db47e41e73bba (patch)
tree3c720ad505c41f38577bab1fdcdfe64eeca638a2 /include/ruby/ruby.h
parent011776b4a63f665858522b5e35493e74ac65ef94 (diff)
* include/ruby/ruby.h (RB_TYPE_P): should not use BUILTIN_TYPE for
special constants. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/ruby.h')
-rw-r--r--include/ruby/ruby.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h
index a9cb9b0fa3..2d6ba66e5c 100644
--- a/include/ruby/ruby.h
+++ b/include/ruby/ruby.h
@@ -1258,7 +1258,7 @@ rb_type(VALUE obj)
((type) == T_NIL) ? ((obj) == Qnil) : \
((type) == T_UNDEF) ? ((obj) == Qundef) : \
((type) == T_SYMBOL) ? SYMBOL_P(obj) : \
- (BUILTIN_TYPE(obj) == (type)))
+ (!SPECIAL_CONST_P(obj) && BUILTIN_TYPE(obj) == (type)))
#ifdef __GNUC__
#define rb_type_p(obj, type) \