* marshal.c (r_object0): should not shadow outer variable not to
return Qnil always. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ecb962058a
commit
4fbc270cd5
@ -1,3 +1,8 @@
|
|||||||
|
Mon Jul 13 20:21:51 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* marshal.c (r_object0): should not shadow outer variable not to
|
||||||
|
return Qnil always.
|
||||||
|
|
||||||
Mon Jul 13 19:41:05 2009 NARUSE, Yui <naruse@ruby-lang.org>
|
Mon Jul 13 19:41:05 2009 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
* marshal.c (r_object0): copy instance variables to new regexp.
|
* marshal.c (r_object0): copy instance variables to new regexp.
|
||||||
|
@ -1393,7 +1393,7 @@ r_object0(struct load_arg *arg, int *ivp, VALUE extmod)
|
|||||||
{
|
{
|
||||||
volatile VALUE str = r_bytes(arg);
|
volatile VALUE str = r_bytes(arg);
|
||||||
int options = r_byte(arg);
|
int options = r_byte(arg);
|
||||||
VALUE v = rb_reg_new("", 0, options);
|
v = rb_reg_new("", 0, options);
|
||||||
if (ivp) {
|
if (ivp) {
|
||||||
r_ivar(v, arg);
|
r_ivar(v, arg);
|
||||||
*ivp = Qfalse;
|
*ivp = Qfalse;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user