Replace RB_OBJ_WRITTEN with RB_OBJ_WRITE in iseq_set_arguments_keywords
This commit is contained in:
parent
7a2b5ed5ee
commit
ead280fe8b
Notes:
git
2024-09-19 18:51:39 +00:00
@ -1991,10 +1991,7 @@ iseq_set_arguments_keywords(rb_iseq_t *iseq, LINK_ANCHOR *const optargs,
|
||||
for (i = 0; i < RARRAY_LEN(default_values); i++) {
|
||||
VALUE dv = RARRAY_AREF(default_values, i);
|
||||
if (dv == complex_mark) dv = Qundef;
|
||||
if (!SPECIAL_CONST_P(dv)) {
|
||||
RB_OBJ_WRITTEN(iseq, Qundef, dv);
|
||||
}
|
||||
dvs[i] = dv;
|
||||
RB_OBJ_WRITE(iseq, &dvs[i], dv);
|
||||
}
|
||||
|
||||
keyword->default_values = dvs;
|
||||
|
Loading…
x
Reference in New Issue
Block a user