aboutsummaryrefslogtreecommitdiffstats
path: root/iseq.c
diff options
context:
space:
mode:
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iseq.c b/iseq.c
index 68ad9a3160..96ccb56ecd 100644
--- a/iseq.c
+++ b/iseq.c
@@ -235,7 +235,7 @@ rb_iseq_mark(const rb_iseq_t *iseq)
for (j = 0; i < body->param.keyword->num; i++, j++) {
VALUE obj = body->param.keyword->default_values[j];
- if (obj != Qundef) {
+ if (!SPECIAL_CONST_P(obj)) {
rb_gc_mark(obj);
}
}