ruby-changes:58400
From: Nobuyoshi <ko1@a...>
Date: Thu, 24 Oct 2019 19:46:11 +0900 (JST)
Subject: [ruby-changes:58400] 30d46966a9 (master): [ruby/fiddle] Use RbConfig::SIZEOF (#19)
https://git.ruby-lang.org/ruby.git/commit/?id=30d46966a9 From 30d46966a97968d166f2f1440f227c2b52483780 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Thu, 13 Jun 2019 16:08:22 +0900 Subject: [ruby/fiddle] Use RbConfig::SIZEOF (#19) https://github.com/ruby/fiddle/commit/ea06b28db8 diff --git a/test/fiddle/helper.rb b/test/fiddle/helper.rb index d6fc44a..ad43e3d 100644 --- a/test/fiddle/helper.rb +++ b/test/fiddle/helper.rb @@ -19,7 +19,7 @@ when /android/ https://github.com/ruby/ruby/blob/trunk/test/fiddle/helper.rb#L19 libm_so = File.join(libdir, "libm.so") when /linux/ libdir = '/lib' - case [0].pack('L!').size + case RbConfig::SIZEOF['void*'] when 4 # 32-bit ruby libdir = '/lib32' if File.directory? '/lib32' @@ -53,7 +53,7 @@ when /bsd|dragonfly/ https://github.com/ruby/ruby/blob/trunk/test/fiddle/helper.rb#L53 libm_so = "/usr/lib/libm.so" when /solaris/ libdir = '/lib' - case [0].pack('L!').size + case RbConfig::SIZEOF['void*'] when 4 # 32-bit ruby libdir = '/lib' if File.directory? '/lib' -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/