diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-14 01:44:48 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-14 01:44:48 +0000 |
| commit | cb332b1c1be6b3c90be32d620da46010d1b2cd5d (patch) | |
| tree | 3c720ad505c41f38577bab1fdcdfe64eeca638a2 /include/ruby | |
| parent | e4606db2d5315f5dba524672fed412b380954ba9 (diff) | |
| download | ruby-cb332b1c1be6b3c90be32d620da46010d1b2cd5d.tar.gz ruby-cb332b1c1be6b3c90be32d620da46010d1b2cd5d.tar.xz ruby-cb332b1c1be6b3c90be32d620da46010d1b2cd5d.zip | |
* include/ruby/ruby.h (RB_TYPE_P): should not use BUILTIN_TYPE for
special constants.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
| -rw-r--r-- | include/ruby/ruby.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index a9cb9b0fa..2d6ba66e5 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) \ |
