diff options
author | Koichi Sasada <ko1@atdot.net> | 2019-09-30 14:27:02 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2019-09-30 14:27:02 +0900 |
commit | 8ba48c1b8509bc52c2fc1f020990c8a3a8eca2c9 (patch) | |
tree | 1d6846dee664aefacc6c097d462d499b8d8c000e | |
parent | 649a64ae29318501472f74798a12eb60871ab990 (diff) | |
download | ruby-8ba48c1b8509bc52c2fc1f020990c8a3a8eca2c9.tar.gz |
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.
-rw-r--r-- | vm_method.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vm_method.c b/vm_method.c index 38da273feb..1508b9a481 100644 --- a/vm_method.c +++ b/vm_method.c @@ -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)); |