From 7a8d52c7cd2d8a14e8933a501eda588f47d01653 Mon Sep 17 00:00:00 2001 From: ko1 Date: Thu, 20 Dec 2007 07:44:03 +0000 Subject: * iseq.c (find_line_no): return 0 if not found. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ iseq.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index d1dc7117d..5b4ec27e0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Dec 20 16:42:55 2007 Koichi Sasada + + * iseq.c (find_line_no): return 0 if not found. + Thu Dec 20 16:04:17 2007 Koichi Sasada * insnhelper.ci, vm.c, vm_core.h: change interface of diff --git a/iseq.c b/iseq.c index 6ad0e8d25..f316edab3 100644 --- a/iseq.c +++ b/iseq.c @@ -559,6 +559,9 @@ find_line_no(rb_iseq_t *iseq, unsigned long pos) if (entry) { return entry->line_no; } + else { + return 0; + } } static unsigned short -- cgit