1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
nobu 2009-09-14 01:44:48 +00:00
parent 011776b4a6
commit e4259b7cc5
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Mon Sep 14 10:44:47 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* include/ruby/ruby.h (RB_TYPE_P): should not use BUILTIN_TYPE for
special constants.
Mon Sep 14 10:08:19 2009 NARUSE, Yui <naruse@ruby-lang.org>
* string.c (rb_str_inspect): use rb_enc_mbc_to_codepoint

View file

@ -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) \