mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* iseq.c (find_line_no): return 0 if not found.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
314bef7ef1
commit
be137f3601
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Thu Dec 20 16:42:55 2007 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
|
* iseq.c (find_line_no): return 0 if not found.
|
||||||
|
|
||||||
Thu Dec 20 16:04:17 2007 Koichi Sasada <ko1@atdot.net>
|
Thu Dec 20 16:04:17 2007 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* insnhelper.ci, vm.c, vm_core.h: change interface of
|
* insnhelper.ci, vm.c, vm_core.h: change interface of
|
||||||
|
|
3
iseq.c
3
iseq.c
|
@ -559,6 +559,9 @@ find_line_no(rb_iseq_t *iseq, unsigned long pos)
|
||||||
if (entry) {
|
if (entry) {
|
||||||
return entry->line_no;
|
return entry->line_no;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned short
|
static unsigned short
|
||||||
|
|
Loading…
Reference in a new issue