1
0
Fork 0
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:
ko1 2007-11-09 01:39:56 +00:00
parent 4c040861c8
commit 9a0e440b81
2 changed files with 6 additions and 1 deletions

View file

@ -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.

View file

@ -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");