summaryrefslogtreecommitdiff
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 e4698f5..93be1ed 100644
--- a/iseq.c
+++ b/iseq.c
@@ -1651,7 +1651,7 @@ iseqw_s_of(VALUE klass, VALUE body)
if (rb_obj_is_proc(body)) {
iseq = vm_proc_iseq(body);
- if (!RUBY_VM_NORMAL_ISEQ_P(iseq)) {
+ if (!rb_obj_is_iseq((VALUE)iseq)) {
iseq = NULL;
}
}