зеркало из https://github.com/github/ruby.git
variable.c: remove FL_ABLE check for generic ivars
Missed this in r50758. * variable.c (generic_ivar_set): remove FL_ABLE check (gen_ivar_copy): ditto [ruby-core:69715] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
3f172356b4
Коммит
1782dd8cd7
|
@ -1,3 +1,9 @@
|
|||
Wed Jun 24 09:23:03 2015 Eric Wong <e@80x24.org>
|
||||
|
||||
* variable.c (generic_ivar_set): remove FL_ABLE check
|
||||
(gen_ivar_copy): ditto
|
||||
[ruby-core:69715]
|
||||
|
||||
Wed Jun 24 08:28:15 2015 Eric Wong <e@80x24.org>
|
||||
|
||||
* ext/socket/ancdata.c (bsock_recvmsg_internal): reduce stack use
|
||||
|
|
|
@ -1357,7 +1357,7 @@ generic_ivar_set(VALUE obj, ID id, VALUE val)
|
|||
|
||||
ivup.u.ivtbl->ivptr[ivup.index] = val;
|
||||
|
||||
if (FL_ABLE(obj)) RB_OBJ_WRITTEN(obj, Qundef, val);
|
||||
RB_OBJ_WRITTEN(obj, Qundef, val);
|
||||
}
|
||||
|
||||
VALUE
|
||||
|
@ -1541,7 +1541,7 @@ gen_ivar_copy(ID id, VALUE val, st_data_t arg)
|
|||
}
|
||||
c->ivtbl->ivptr[ivup.index] = val;
|
||||
|
||||
if (FL_ABLE(c->obj)) RB_OBJ_WRITTEN(c->obj, Qundef, val);
|
||||
RB_OBJ_WRITTEN(c->obj, Qundef, val);
|
||||
|
||||
return ST_CONTINUE;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче