summaryrefslogtreecommitdiff
path: root/test/ruby/test_fixnum.rb
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2025-12-07 12:43:44 -0500
committerPeter Zhu <peter@peterzhu.ca>2025-12-08 15:01:05 -0800
commit55ea3ec00f5166423cd7dcd67e220cd264a766f6 (patch)
tree8fe29d8d55e2c6938bc1f0f5680796354d820cbb /test/ruby/test_fixnum.rb
parent66bda731901d4588c9df1a671022231ea0d03216 (diff)
Fix strict aliasing warning in rb_int128_to_numeric
If we don't have uint128, then rb_int128_to_numeric emits a strict aliasing warning: numeric.c:3641:39: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 3641 | return rb_uint128_to_numeric(*(rb_uint128_t*)&n); | ^~~~~~~~~~~~~~~~~
Diffstat (limited to 'test/ruby/test_fixnum.rb')
0 files changed, 0 insertions, 0 deletions