summaryrefslogtreecommitdiff
path: root/mjit_c.rb
diff options
context:
space:
mode:
authorTakashi Kokubun <[email protected]>2023-03-06 13:20:53 -0800
committerTakashi Kokubun <[email protected]>2023-03-06 13:20:54 -0800
commitb116b2bcf68d68f51743acd16592d430289aa431 ()
treecef2cd99d2257ac5644fc09ece8992bcb04564f5 /mjit_c.rb
parenta1758fbd7fe7406601b0eb1617752db59b83586a (diff)
Fix a compilation warning on Mac
../mjit_c.rb:493:17: warning: implicit conversion loses integer precision: 'ID' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] return UINT2NUM(vm_ci_mid((CALL_INFO)NUM2PTR(_ci_addr))); ~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-rw-r--r--mjit_c.rb2
1 files changed, 1 insertions, 1 deletions
@@ -490,7 +490,7 @@ module RubyVM::MJIT # :nodoc: all
def vm_ci_mid(ci)
_ci_addr = ci.to_i
- Primitive.cexpr! 'UINT2NUM(vm_ci_mid((CALL_INFO)NUM2PTR(_ci_addr)))'
end
def rb_splat_or_kwargs_p(ci)