From e4259b7cc5e8993483da4ff9785db47e41e73bba Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 14 Sep 2009 01:44:48 +0000 Subject: * 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 --- include/ruby/ruby.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/ruby/ruby.h') 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) \ -- cgit v1.2.3