mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
reverting r37881
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1d8d7a3eec
commit
1eac1cb21e
17 changed files with 33 additions and 1951 deletions
|
@ -57,8 +57,8 @@ module Fiddle
|
|||
end
|
||||
|
||||
%w[INT SHORT CHAR LONG LONG_LONG].each do |name|
|
||||
type = Fiddle.const_get("TYPE_#{name}") rescue next
|
||||
size = Fiddle.const_get("SIZEOF_#{name}")
|
||||
type = DL.const_get("TYPE_#{name}") rescue next
|
||||
size = DL.const_get("SIZEOF_#{name}")
|
||||
[[type, size-1, name], [-type, size, "unsigned_"+name]].each do |t, s, n|
|
||||
define_method("test_conversion_#{n.downcase}") do
|
||||
arg = nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue