mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* marshal.c (w_object): should set `c_arg' at first.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
25358510af
commit
c49c51b76e
2 changed files with 8 additions and 4 deletions
|
@ -3,6 +3,10 @@ Fri Aug 8 12:33:17 2003 WATANABE Hirofumi <eban@ruby-lang.org>
|
|||
* bcc32/Makefile.sub: rubyw.exe should be a Windows GUI program.
|
||||
add the -aa option to WLDFLAGS.
|
||||
|
||||
Fri Aug 8 11:29:26 2003 Koji Arai <jca02266@nifty.ne.jp>
|
||||
|
||||
* marshal.c (w_object): should set `c_arg' at first.
|
||||
|
||||
Fri Aug 8 03:22:28 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
|
||||
|
||||
* lib/webrick/httputils.rb (FormData#list): should not take
|
||||
|
|
|
@ -434,6 +434,10 @@ w_object(obj, arg, limit)
|
|||
rb_raise(rb_eArgError, "exceed depth limit");
|
||||
}
|
||||
|
||||
limit--;
|
||||
c_arg.limit = limit;
|
||||
c_arg.arg = arg;
|
||||
|
||||
if (ivtbl = rb_generic_ivar_table(obj)) {
|
||||
w_byte(TYPE_IVAR, arg);
|
||||
}
|
||||
|
@ -466,10 +470,6 @@ w_object(obj, arg, limit)
|
|||
else {
|
||||
long num;
|
||||
|
||||
limit--;
|
||||
c_arg.limit = limit;
|
||||
c_arg.arg = arg;
|
||||
|
||||
if (st_lookup(arg->data, obj, &num)) {
|
||||
w_byte(TYPE_LINK, arg);
|
||||
w_long(num, arg);
|
||||
|
|
Loading…
Reference in a new issue