summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-24 00:24:32 (GMT)
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-24 00:24:32 (GMT)
commit1782dd8cd753401578ae19ea8be285f9d41bcde5 (patch)
treea3e268d727ebd2b9c4f9543b913139b7773b7dbb /variable.c
parent3f172356b423b2add2066fa0380ac6b1fdada135 (diff)
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
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/variable.c b/variable.c
index e130ee1..bb8b6db 100644
--- a/variable.c
+++ b/variable.c
@@ -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;
}