diff --git a/iseq.c b/iseq.c index abb0f37b98..873aeae864 100644 --- a/iseq.c +++ b/iseq.c @@ -2322,7 +2322,7 @@ iseqw_s_of(VALUE klass, VALUE body) if (rb_obj_is_proc(body)) { iseq = vm_proc_iseq(body); - if (rb_obj_is_iseq((VALUE)iseq)) { + if (rb_obj_is_iseq((VALUE)iseq)) { return iseqw_new(iseq); } else {