diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-20 07:44:03 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-20 07:44:03 +0000 |
commit | be137f3601610491d4265a4f9c87bf52fef28d66 (patch) | |
tree | 034c79c0e3088fe5bf3f74b7895e1ab2006dcf68 | |
parent | 314bef7ef149d7ce87c57fa0c95e30fc8fb9b27f (diff) |
* 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
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | iseq.c | 3 |
2 files changed, 7 insertions, 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> * insnhelper.ci, vm.c, vm_core.h: change interface of @@ -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 |