diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ruby_vm/mjit/exit_compiler.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ruby_vm/mjit/exit_compiler.rb b/lib/ruby_vm/mjit/exit_compiler.rb index 531fe3f426..6d3a0406a7 100644 --- a/lib/ruby_vm/mjit/exit_compiler.rb +++ b/lib/ruby_vm/mjit/exit_compiler.rb @@ -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 |