We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d844cb commit 30d4696Copy full SHA for 30d4696
test/fiddle/helper.rb
@@ -19,7 +19,7 @@
19
libm_so = File.join(libdir, "libm.so")
20
when /linux/
21
libdir = '/lib'
22
- case [0].pack('L!').size
+ case RbConfig::SIZEOF['void*']
23
when 4
24
# 32-bit ruby
25
libdir = '/lib32' if File.directory? '/lib32'
@@ -53,7 +53,7 @@
53
libm_so = "/usr/lib/libm.so"
54
when /solaris/
55
56
57
58
59
libdir = '/lib' if File.directory? '/lib'
0 commit comments