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 | 7a8d52c7cd2d8a14e8933a501eda588f47d01653 (patch) | |
tree | 034c79c0e3088fe5bf3f74b7895e1ab2006dcf68 /iseq.c | |
parent | 35e926ca1fb6600c1c9461d4144c999bc82c1805 (diff) | |
download | ruby-7a8d52c7cd2d8a14e8933a501eda588f47d01653.tar.gz ruby-7a8d52c7cd2d8a14e8933a501eda588f47d01653.tar.xz ruby-7a8d52c7cd2d8a14e8933a501eda588f47d01653.zip |
* 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
Diffstat (limited to 'iseq.c')
-rw-r--r-- | iseq.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |