mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* marshal.c (w_object): should be SPECIAL_CONST_P() instead of
IMMEDIATE_P(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4c040861c8
commit
9a0e440b81
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Fri Nov 9 10:38:13 2007 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* marshal.c (w_object): should be SPECIAL_CONST_P() instead of
|
||||
IMMEDIATE_P().
|
||||
|
||||
Fri Nov 9 10:29:21 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* eval.c (rb_invoke_method): check if invoked in function style.
|
||||
|
|
|
@ -525,7 +525,7 @@ w_object(VALUE obj, struct dump_arg *arg, int limit)
|
|||
st_data_t num;
|
||||
int hasiv = 0;
|
||||
#define has_ivars(obj, ivtbl) ((ivtbl = rb_generic_ivar_table(obj)) != 0 || \
|
||||
(!IMMEDIATE_P(obj) && ENCODING_GET(obj)))
|
||||
(!SPECIAL_CONST_P(obj) && ENCODING_GET(obj)))
|
||||
|
||||
if (limit == 0) {
|
||||
rb_raise(rb_eArgError, "exceed depth limit");
|
||||
|
|
Loading…
Add table
Reference in a new issue