rb_method_attr_t::location should be 0 or others.
method_def_location() expects that rb_method_attr_t::location is 0 (Qfalse) or not.
This commit is contained in:
parent
649a64ae29
commit
8ba48c1b85
@ -285,10 +285,10 @@ the_location(void)
|
||||
int line;
|
||||
|
||||
if (!cfp) {
|
||||
return Qnil;
|
||||
return Qfalse;
|
||||
}
|
||||
else if (! (line = rb_vm_get_sourceline(cfp))) {
|
||||
return Qnil;
|
||||
return Qfalse;
|
||||
}
|
||||
else {
|
||||
VALUE loc = rb_ary_new3(2, rb_iseq_path(cfp->iseq), INT2FIX(line));
|
||||
|
Loading…
x
Reference in New Issue
Block a user