summaryrefslogtreecommitdiff
path: root/test/fiddle/test_closure.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/fiddle/test_closure.rb')
-rw-r--r--test/fiddle/test_closure.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fiddle/test_closure.rb b/test/fiddle/test_closure.rb
index 56839e7..381b3f9 100644
--- a/test/fiddle/test_closure.rb
+++ b/test/fiddle/test_closure.rb
@@ -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