summaryrefslogtreecommitdiff
path: root/vm_method.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_method.c')
-rw-r--r--vm_method.c4
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));