mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
Handle RangeError in iseq_lineno
This commit is contained in:
parent
1fa519fdae
commit
b379ccf755
1 changed files with 2 additions and 0 deletions
|
@ -139,6 +139,8 @@ module RubyVM::MJIT
|
|||
|
||||
def iseq_lineno(iseq, pc)
|
||||
C.rb_iseq_line_no(iseq, (pc - iseq.body.iseq_encoded.to_i) / C.VALUE.size)
|
||||
rescue RangeError # bignum too big to convert into `unsigned long long' (RangeError)
|
||||
-1
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue