ruby-changes:12388
From: nobu <ko1@a...>
Date: Mon, 13 Jul 2009 20:23:34 +0900 (JST)
Subject: [ruby-changes:12388] Ruby:r24087 (trunk): * marshal.c (r_object0): should not shadow outer variable not to
nobu 2009-07-13 20:21:55 +0900 (Mon, 13 Jul 2009) New Revision: 24087 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24087 Log: * marshal.c (r_object0): should not shadow outer variable not to return Qnil always. Modified files: trunk/ChangeLog trunk/marshal.c Index: ChangeLog =================================================================== --- ChangeLog (revision 24086) +++ ChangeLog (revision 24087) @@ -1,3 +1,8 @@ +Mon Jul 13 20:21:51 2009 Nobuyoshi Nakada <nobu@r...> + + * marshal.c (r_object0): should not shadow outer variable not to + return Qnil always. + Mon Jul 13 19:41:05 2009 NARUSE, Yui <naruse@r...> * marshal.c (r_object0): copy instance variables to new regexp. Index: marshal.c =================================================================== --- marshal.c (revision 24086) +++ marshal.c (revision 24087) @@ -1393,7 +1393,7 @@ { volatile VALUE str = r_bytes(arg); int options = r_byte(arg); - VALUE v = rb_reg_new("", 0, options); + v = rb_reg_new("", 0, options); if (ivp) { r_ivar(v, arg); *ivp = Qfalse; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/